Update .gitea/workflows/deploy.yaml

This commit is contained in:
brooke 2025-04-12 20:57:27 -04:00
parent ed3a6ff65c
commit 026a658cea

View file

@ -1,24 +1,26 @@
name: Static name: Static
on: [push] on:
push:
branches:
- main
jobs: jobs:
build: build:
container:
runs-on: hugo-latest image: fung.uy/mycosystems/web-ci:latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
submodules: 'recursive' submodules: 'true'
- name: pre-compress - name: pre-compress
run: find ./public/* -type f \( -name '*.html' -o -name '*.js' -o -name '*.css' \) -exec gzip -v -k -f --best {} \; run: find ./public/* -type f \( -name '*.html' -o -name '*.js' -o -name '*.css' \) -exec gzip -v -k -f --best {} \;
- name: Deploy to Server - name: Deploy to Server
uses: easingthemes/ssh-deploy@main uses: https://fung.uy/mirrors/ssh-deploy@main
env: env:
SSH_PRIVATE_KEY: ${{ secrets.CRUNCHBITS_PA_PRIVATE_KEY }} SSH_PRIVATE_KEY: ${{ secrets.PA_SSH_KEY }}
ARGS: "-rlgoDzvc -i --delete" ARGS: "-rlgoDzvc -i --delete"
SOURCE: "public/" SOURCE: "public/"
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} REMOTE_HOST: ${{ secrets.PA_HOST }}
REMOTE_USER: ${{ secrets.REMOTE_USER }} REMOTE_USER: ${{ secrets.PA_USER }}
TARGET: ${{ secrets.REMOTE_TARGET }} TARGET: ${{ secrets.PA_DATA_DIR }}/myco.systems