Merge pull request #11 from ccrsxx/renovate/all-minor-patch #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |