Skip to content

Commit 91e66b7

Browse files
committed
setup railway deploy
1 parent 65f1476 commit 91e66b7

2 files changed

Lines changed: 20 additions & 18 deletions

File tree

.github/workflows/fly-deploy.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Railway Deploy
2+
on:
3+
push:
4+
branches:
5+
- ng/setup-railway-deploy
6+
jobs:
7+
deploy:
8+
name: Deploy Sync Server
9+
runs-on: ubuntu-latest
10+
concurrency: deploy-group # optional: ensure only one action runs at a time
11+
container: ghcr.io/railwayapp/cli:latest
12+
env:
13+
SVC_ID: ${{ vars.RAILWAY_SERVICE_ID_PRODUCTION_TESTNET }}
14+
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN_PRODUCTION_TESTNET }}
15+
steps:
16+
- uses: actions/checkout@v4
17+
- run: sed -i '' \
18+
's|\(--mount=type=cache,id=\)workspace|\1s/${{ env.SVC_ID }}-pnpm-store|' \
19+
Dockerfile
20+
- run: railway up --service=${{ env.SVC_ID }}

0 commit comments

Comments
 (0)