CI: workflow de deploy automatico via Forgejo Actions (runner workstation) — build + rsync ao homeserver, sem secrets
All checks were successful
deploy / deploy (push) Successful in 4s

This commit is contained in:
Francisco Solla 2026-08-15 09:36:34 -03:00
parent 71b5edd139
commit 86e46cb3e2

View file

@ -0,0 +1,21 @@
name: deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: host
steps:
- name: Build e deploy
run: |
set -e
rm -rf /tmp/iara-build
git clone -q --depth 1 -b main https://git.solla.dev/amana/iara-pwa.git /tmp/iara-build
cd /tmp/iara-build
export PATH="$HOME/.bun/bin:$PATH"
bun install --frozen-lockfile
bun run build
rsync -az --delete dist/ homeserver:~/iara-pwa/dist/
echo "deploy concluido em $(date -u +%H:%M:%SZ)"