Skip to content

Merge pull request #269 from tarekfb/post-mortem-error-message #178

Merge pull request #269 from tarekfb/post-mortem-error-message

Merge pull request #269 from tarekfb/post-mortem-error-message #178

name: Deploy Migrations to Staging
on:
push:
branches:
- dev
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.STAG_DB_PASSWORD }}
SUPABASE_PROJECT_ID: ${{ secrets.STAG_PROJECT_ID }}
steps:
- uses: actions/checkout@v3
- uses: supabase/setup-cli@v1
with:
version: latest
- run: supabase link --project-ref $SUPABASE_PROJECT_ID
- run: supabase db push --include-all
# - run: supabase db reset --db-url ${{ secrets.STAG_CONNECTION_STRING}}