Skip to content

Commit

Permalink
Adds automatic migrations on CICD (#77)
Browse files Browse the repository at this point in the history
* Adds automatic migrations on CICD

* Adds correct env variable for migrations
  • Loading branch information
sudoFerraz authored Mar 26, 2024
1 parent 68be2a7 commit 52c2414
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/supabase-migrations-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Deploy migrations
on:
push:
branches:
- main
- dev

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3

- name: Install dependencies
run: yarn install

- name: Apply all pending migrations to the database
run: yarn prisma migrate deploy
env:
FRONTEND_DATABASE_URL: ${{ secrets.DATABASE_URL }}

0 comments on commit 52c2414

Please sign in to comment.