Skip to content

Merge pull request #27 from supabase-community/ci/run-migrations #1

Merge pull request #27 from supabase-community/ci/run-migrations

Merge pull request #27 from supabase-community/ci/run-migrations #1

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