some-fixes-5 #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: | |
| push: | |
| branches: [main] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| env: | |
| RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install Railway CLI | |
| run: curl -fsSL https://railway.app/install.sh | sh | |
| - name: Verify Railway CLI Version | |
| run: railway --version | |
| - name: Deploy Frontend Service | |
| run: | | |
| echo "Deploying frontend service" | |
| railway up --service frontend --project profound-sparkle | |
| - name: Deploy Backend Service | |
| run: | | |
| echo "Deploying backend service" | |
| railway up --service backend --project profound-sparkle |