myco.systems/.gitea/workflows/deploy.yaml
brooke 334f89009d
Some checks failed
Static / build (push) Failing after 2m49s
Update .gitea/workflows/deploy.yaml
2025-04-12 20:57:47 -04:00

26 lines
711 B
YAML

name: Static
on:
push:
branches:
- main
jobs:
build:
container:
image: fung.uy/mycosystems/web-ci:latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- 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://fung.uy/mirrors/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.PA_SSH_KEY }}
ARGS: "-rlgoDzvc -i --delete"
SOURCE: "public/"
REMOTE_HOST: ${{ secrets.PA_HOST }}
REMOTE_USER: ${{ secrets.PA_USER }}
TARGET: ${{ secrets.PA_DATA_DIR }}/myco.systems