myco.systems/.gitea/workflows/deploy.yaml
brooke 2575ae76e0
All checks were successful
Static / build (push) Successful in 4s
try hugo container for rsync
2024-08-08 19:34:52 -04:00

24 lines
No EOL
655 B
YAML

name: Static
on: [push]
jobs:
build:
runs-on: hugo-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- 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: 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.REMOTE_TARGET }}