Skip to content

Update deploy.yml

Update deploy.yml #8

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: Where Am I
run: ls
- name: Apply all pending migrations to the database
working-directory: server
run: npx prisma migrate deploy --schema
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}