Skip to content

fix(ci): remove redundant cd command in sb migration workflow #2

fix(ci): remove redundant cd command in sb migration workflow

fix(ci): remove redundant cd command in sb migration workflow #2

name: Supabase CI
on:
push:
branches:
- production
workflow_dispatch:
jobs:
deploy:
name: Migrate production database
timeout-minutes: 15
runs-on: ubuntu-latest
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.PRODUCTION_DB_PASSWORD }}
PRODUCTION_PROJECT_ID: ${{ secrets.PRODUCTION_PROJECT_ID }}
steps:
- uses: actions/checkout@v4
- uses: supabase/setup-cli@v1
- name: Deploy migrations to production
run: |
supabase link --project-ref ${{ env.PRODUCTION_PROJECT_ID }}
supabase db push