This commit is contained in:
parent
5615f04b57
commit
c598c84e8e
1 changed files with 9 additions and 9 deletions
|
@ -1,4 +1,4 @@
|
||||||
name: Static Deploy
|
name: Hugo
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -7,15 +7,15 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: hugo-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
submodules: "recursive"
|
|
||||||
- name: Grab packages
|
- name: Grab packages
|
||||||
run: |
|
run: apk add rsync openssh-client
|
||||||
apt-get update && \
|
- uses: actions/checkout@v4
|
||||||
apt-get install --no-install-recommends --no-install-suggests -y jq rsync
|
with:
|
||||||
|
submodules: 'true'
|
||||||
|
- name: Run build task
|
||||||
|
run: hugo --minify
|
||||||
- name: Test static page
|
- name: Test static page
|
||||||
run: bash ${{ gitea.workspace }}/bin/test_static_page.sh
|
run: bash ${{ gitea.workspace }}/bin/test_static_page.sh
|
||||||
- name: Deploy to Server
|
- name: Deploy to Server
|
||||||
|
|
Loading…
Add table
Reference in a new issue