mycelia.blog/.gitea/workflows/deploy.yaml
brooke 0f3c6b90f5
Some checks failed
Hugo / build (push) Has been cancelled
Update .gitea/workflows/deploy.yaml
2025-03-21 21:09:06 -04:00

28 lines
No EOL
793 B
YAML

name: Hugo
on:
push:
branches:
- main
jobs:
build:
container:
image: fung.uy/mycosystems/web-ci: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: 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 }}