Skip to content

Commit c0f9828

Browse files
committed
setup railway deploy
1 parent 65f1476 commit c0f9828

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

.github/workflows/fly-deploy.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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: ls -la
18+
- run: sed -i 's|\(--mount=type=cache,id=\)workspace|\1s/${{ env.SVC_ID }}-pnpm-store|' Dockerfile
19+
- run: railway up --service=${{ env.SVC_ID }}

0 commit comments

Comments
 (0)