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:
|
||||
push:
|
||||
|
@ -7,15 +7,15 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
runs-on: hugo-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: Grab packages
|
||||
run: |
|
||||
apt-get update && \
|
||||
apt-get install --no-install-recommends --no-install-suggests -y jq rsync
|
||||
run: apk add rsync openssh-client
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: 'true'
|
||||
- name: Run build task
|
||||
run: hugo --minify
|
||||
- name: Test static page
|
||||
run: bash ${{ gitea.workspace }}/bin/test_static_page.sh
|
||||
- name: Deploy to Server
|
||||
|
@ -26,4 +26,4 @@ jobs:
|
|||
SOURCE: "public/"
|
||||
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
||||
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
||||
TARGET: ${{ secrets.REMOTE_TARGET }}
|
||||
TARGET: ${{ secrets.REMOTE_TARGET }}
|
Loading…
Add table
Reference in a new issue