some-fixes #2
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: Login to Railway | |
| run: railway login | |
| - name: Link to Railway Project | |
| run: railway link profound-sparkle | |
| - name: Deploy Frontend Service | |
| run: | | |
| echo "Deploying frontend service" | |
| railway up --service frontend | |
| - name: Deploy Backend Service | |
| run: | | |
| echo "Deploying backend service" | |
| railway up --service backend |