Deploy to Railway #6
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 to Railway | |
| on: | |
| workflow_run: | |
| workflows: ["Release Sourcebot (Development)"] | |
| types: [completed] | |
| concurrency: | |
| group: deploy-railway | |
| cancel-in-progress: false | |
| jobs: | |
| deploy: | |
| name: Deploy to Railway | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/railwayapp/cli:latest | |
| if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
| env: | |
| RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} | |
| steps: | |
| - name: Deploy image to Railway | |
| run: railway redeploy --service=sourcebot --yes |