myco.systems/.gitea/workflows/deploy.yaml
brooke 1f0a7cbb33
All checks were successful
Static / build (push) Successful in 16s
update ssh priv key secret
2025-03-02 18:13:33 -05:00

24 lines
No EOL
665 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.CRUNCHBITS_PA_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: "public/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }}