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
All checks were successful
deploy / deploy (push) Successful in 4s
This commit is contained in:
parent
71b5edd139
commit
86e46cb3e2
1 changed files with 21 additions and 0 deletions
21
.forgejo/workflows/deploy.yml
Normal file
21
.forgejo/workflows/deploy.yml
Normal 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)"
|
||||
Loading…
Reference in a new issue