Files
api-ubigeo/.github/workflows/deploy.yml
Gianpierre Mio c5d6734f9a
Some checks failed
Deploy / deploy (push) Failing after 1s
ci: simplify workflows - deploy on main push, CI on PR only
2026-03-09 23:50:28 -05:00

28 lines
578 B
YAML

name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Sync source
run: |
rsync -a --delete \
--exclude='.git' \
--exclude='node_modules' \
--exclude='dist' \
--exclude='.env' \
. /home/deployer/api-ubigeo/
- name: Build & deploy
run: bash /home/deployer/deploy-ubigeo.sh
- name: Health check
run: curl -f https://api-ubigeo.darkcodex.dev/api/v1/health