Skip to content

Commit

Permalink
💚 ci: add prisma migrate to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
megasanjay committed Dec 9, 2024
1 parent 2c5b413 commit a3f891d
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,27 @@ jobs:

# Deploy the app for all other times
- run: kamal redeploy
# - run: kamal redeploy --verbose
# - run: kamal redeploy --verbose

migrate-db:
runs-on: ubuntu-latest
environment: stg
defaults:
run:
working-directory: ui
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- run: yarn install

- run: yarn prisma:generate

- run: yarn prisma:migrate:deploy

0 comments on commit a3f891d

Please sign in to comment.