feat(merge-queue): v2 pure decision core — explicit state machine + d… #321
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
| name: Deploy backend | |
| # Deploy the hosted backend to Railway on every push to main that touches | |
| # something the backend actually cares about. The desktop app ships | |
| # separately via publish.yml and can't trigger a backend deploy. | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'packages/backend/**' | |
| - 'packages/shared/**' | |
| - 'Dockerfile' | |
| - 'railway.toml' | |
| - '.dockerignore' | |
| - '.github/workflows/deploy-backend.yml' | |
| workflow_dispatch: {} | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| # Guard so forks / PRs from forks can't burn Railway credits. | |
| if: github.repository == 'Gilbert09/talyn' | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Install Railway CLI | |
| # npm-based install: the curl|sh installer runs under dash and dies on | |
| # a bash-only substitution, and never puts the binary on PATH for the | |
| # next step. npm's global bin is already on PATH. (Node is preinstalled | |
| # on ubuntu-latest.) | |
| run: npm i -g @railway/cli | |
| - name: Deploy | |
| env: | |
| RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} | |
| run: railway up --ci --service fastowl-backend |