Skip to content

Improve error handling and tidy up routes (#101) #23

Improve error handling and tidy up routes (#101)

Improve error handling and tidy up routes (#101) #23

name: Supabase Production
on:
push:
branches:
- main
jobs:
Deploy:
name: Migrate production database
runs-on: ubuntu-latest
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.PRODUCTION_DB_PASSWORD }}
PROJECT_ID: ${{ vars.PRODUCTION_SUPABASE_PROJECT_ID }}
steps:
- uses: actions/checkout@v3
- uses: supabase/setup-cli@v1
with:
version: latest
- run: supabase link --project-ref $PROJECT_ID
working-directory: data
- run: supabase db push
working-directory: data