Skip to content

Commit

Permalink
Merge pull request #27 from supabase-community/ci/run-migrations
Browse files Browse the repository at this point in the history
Run prod migrations in CI
  • Loading branch information
gregnr authored Aug 8, 2024
2 parents e872ade + 1232df0 commit 37dceea
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/run-migrations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run Migrations

on:
push:
branches:
- main

jobs:
run-migrations:
runs-on: ubuntu-latest

env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_PROD_DB_PASSWORD }}
PROJECT_ID: ${{ vars.SUPABASE_PROD_PROJECT_ID }}

steps:
- uses: supabase/setup-cli@v1
- run: supabase link --project-ref $PROJECT_ID
- run: supabase db push

0 comments on commit 37dceea

Please sign in to comment.