setup railway deploy #4
Workflow file for this run
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: Railway Deploy | |
on: | |
push: | |
branches: | |
- ng/setup-railway-deploy | |
jobs: | |
deploy: | |
name: Deploy Sync Server | |
runs-on: ubuntu-latest | |
concurrency: deploy-group # optional: ensure only one action runs at a time | |
container: ghcr.io/railwayapp/cli:latest | |
env: | |
SVC_ID: ${{ vars.RAILWAY_SERVICE_ID_PRODUCTION_TESTNET }} | |
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN_PRODUCTION_TESTNET }} | |
steps: | |
- uses: actions/checkout@v4 | |
- run: ls -la | |
- run: sed -i \ | |
's|\(--mount=type=cache,id=\)workspace|\1s/${{ env.SVC_ID }}-pnpm-store|' \ | |
Dockerfile | |
- run: railway up --service=${{ env.SVC_ID }} |