Skip to content

Commit

Permalink
add deploy step to railway
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvincent committed Sep 23, 2023
1 parent d479f54 commit f88a7bc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

jobs:
migrate:
db-migrate-n-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -44,3 +44,10 @@ jobs:
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}

- name: Install Railway CLI
run: npm i -g @railway/cli

- name: Deploy API
run: railway up
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}

1 comment on commit f88a7bc

@vercel
Copy link

@vercel vercel bot commented on f88a7bc Sep 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.