Merge pull request #47 from Reasonote/staging #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Supabase PROD Test and Deployment | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| PROD-Run-SB-Migrate: | |
| environment: 'Production' | |
| runs-on: 'ubuntu-latest' | |
| if: github.ref == 'refs/heads/main' | |
| env: | |
| SUPABASE_ACCESS_TOKEN: ${{ secrets.REASONOTE_PROD_TOP_SECRET_SUPABASE_DB_AUTH_TOKEN }} | |
| SUPABASE_DB_PASSWORD: ${{ secrets.REASONOTE_PROD_TOP_SECRET_SUPABASE_DB_PASSWORD }} | |
| PROJECT_ID: qqlmpugonlnzzzgdhtfj | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: true | |
| - name: Setup Supabase CLI | |
| uses: supabase/setup-cli@v1 | |
| with: | |
| version: 2.15.8 | |
| - name: Link to Supabase project | |
| run: supabase link --project-ref $PROJECT_ID | |
| - name: Push database migrations | |
| run: supabase db push |