Skip to content

Merge pull request #4 from ccrsxx/renovate/all-minor-patch #9

Merge pull request #4 from ccrsxx/renovate/all-minor-patch

Merge pull request #4 from ccrsxx/renovate/all-minor-patch #9

name: ⬆️ Deploy migrations to database
on:
push:
branches:
- main
jobs:
deploy:
name: 🔥 Migrate
runs-on: ubuntu-latest
environment: Production
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Download deps
run: npm ci
- name: Apply all pending migrations to the database
run: npx prisma migrate deploy
env:
POSTGRES_PRISMA_URL: ${{ secrets.POSTGRES_PRISMA_URL }}
POSTGRES_URL_NON_POOLING: ${{ secrets.POSTGRES_URL_NON_POOLING }}