parent
e85e739ba0
commit
43f0b8dc48
1 changed files with 29 additions and 0 deletions
29
.gitea/workflows/demo-deploy.yaml
Normal file
29
.gitea/workflows/demo-deploy.yaml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: Hugo
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- rework
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: hugo-latest
|
||||||
|
steps:
|
||||||
|
- name: Grab packages
|
||||||
|
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
|
||||||
|
uses: easingthemes/ssh-deploy@main
|
||||||
|
env:
|
||||||
|
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
ARGS: "-rlgoDzvc -i --delete"
|
||||||
|
SOURCE: "public/"
|
||||||
|
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
|
||||||
|
REMOTE_USER: ${{ secrets.REMOTE_USER }}
|
||||||
|
TARGET: ${{ secrets.DEMO_REMOTE_TARGET }}
|
Loading…
Add table
Reference in a new issue