Merge pull request #2 from ParkerSm1th/ParkerSm1th-patch-1 #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Migrate Prod DB | |
on: | |
push: | |
branches: | |
- main | |
defaults: | |
run: | |
working-directory: server | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Apply all pending migrations to the database | |
working-directory: server | |
run: npx prisma migrate deploy --schema './server/prisma/schema.prisma' | |
env: | |
DATABASE_URL: ${{ secrets.DATABASE_URL }} |