Skip to content

Commit c1008ba

Browse files
Saad NadeemSaad Nadeem
authored andcommitted
Add GitHub Action for Railway deployment
1 parent 30436b9 commit c1008ba

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy to Railway
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Install Railway CLI
14+
run: curl -fsSL https://railway.app/install.sh | sh
15+
16+
- name: Deploy to Railway
17+
env:
18+
RAILWAY_TOKEN: 0f9aec32-ff91-4500-9165-60c5916af8b1
19+
run: |
20+
railway login --token $RAILWAY_TOKEN
21+
railway link logistics-app
22+
echo "Deploying frontend service"
23+
railway up --service frontend
24+
echo "Deploying backend service"
25+
railway up --service backend

0 commit comments

Comments
 (0)