Skip to content

Commit

Permalink
ci: add migration stage in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
riya09 committed Nov 2, 2024
1 parent fb25be8 commit 2b8df4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/core-to-railway.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
- name: Install Railway
run: npm install -g @railway/cli

- name: Run Database Migrations
working-directory: ./misc/migrator
run: pnpm run migration up
env:
DATABASE_URL: ${{ secrets.DATABASE_PUBLIC_URL }}

- name: Deploy
working-directory: ./apps/jonogon-core/
run: railway up --service jonogon-core
Expand Down

0 comments on commit 2b8df4f

Please sign in to comment.