Skip to content

Deploy database changes to the Supabase Staging database. #3

Deploy database changes to the Supabase Staging database.

Deploy database changes to the Supabase Staging database. #3

Workflow file for this run

name: staging-deploy
run-name: Deploy database changes to the Supabase Staging database.
on:
push:
branches-ignore:
- 'main'
jobs:
prisma-migrate-deploy:
name: Run prisma migrations
runs-on: ubuntu-latest
environment:
name: staging
env:
DATABASE_URL: ${{ secrets.STAGING_DATABASE_URL }}
DATABASE_DIRECT_URL: ${{ secrets.STAGING_DATABASE_DIRECT_URL }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'npm'
node-version-file: '.nvmrc'
- run: npx prisma@5.0.0 migrate deploy