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