demo deploy
Some checks failed
Hugo / build (push) Failing after 1m9s

This commit is contained in:
brooke 2024-04-16 15:16:47 -04:00
parent e85e739ba0
commit 43f0b8dc48

View 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 }}