fix(deploy): stop the Pages build dying on a rename that already happ… #28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ═══════════════════════════════════════════════════════════════════════════════ | |
| # XActions — Deploy API to Railway | |
| # Triggers on push to main (auto-deploy) | |
| # by nichxbt | |
| # ═══════════════════════════════════════════════════════════════════════════════ | |
| name: Deploy API (Railway) | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'api/**' | |
| - 'src/**' | |
| - 'prisma/**' | |
| - 'package.json' | |
| - 'package-lock.json' | |
| concurrency: | |
| group: deploy-railway | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| name: Deploy to Railway | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| if: github.ref == 'refs/heads/main' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Railway CLI | |
| run: npm install -g @railway/cli | |
| - name: Deploy to Railway | |
| run: railway up --service xactions-api | |
| env: | |
| RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} |