gallowelds.com/.forgejo/workflows/deploy.yaml
brooke c2de5a7435
All checks were successful
Hugo / build (push) Successful in 11s
fix brnach name
2024-06-10 21:59:06 -04:00

27 lines
No EOL
773 B
YAML

name: Hugo
on:
push:
branches:
- main
jobs:
build:
runs-on: hugo-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Run build task
run: hugo --minify
- name: pre-compress
run: find ./public/* -type f \( -name '*.html' -o -name '*.js' -o -name '*.css' \) -exec gzip -v -k -f --best {} \;
- name: Deploy to Server
uses: https://git.myco.systems/mirrors/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.RUNNER_SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: "public/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}