Skip to content

Merge pull request #2 from ParkerSm1th/ParkerSm1th-patch-1 #4

Merge pull request #2 from ParkerSm1th/ParkerSm1th-patch-1

Merge pull request #2 from ParkerSm1th/ParkerSm1th-patch-1 #4

Workflow file for this run

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 }}