Skip to content

Merge pull request #139 from mission-minded-llc/develop #14

Merge pull request #139 from mission-minded-llc/develop

Merge pull request #139 from mission-minded-llc/develop #14

name: "Prisma Sync - Production Environment"
description:
"Sync the Prisma schema with the production database. Should only be run when the Prisma schema
changes or sample data changes are merged to the `main` branch."
on:
push:
branches: [main]
paths:
- "**.sql"
- "**.prisma"
- "**.csv"
workflow_dispatch:
jobs:
deploy-app:
name: Prisma Sync - Production Environment
runs-on: ubuntu-latest
env:
DATABASE_URL: "${{ secrets.DATABASE_URL_BASE }}ampdresume_production?schema=ampdresume"
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-dependencies
- name: Migrate database
run: npm run prisma:migrate
- name: Seed database
run: npm run prisma:seed