Merge pull request #40 from MaximeFARRE/feat/health-and-features #38
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: Deploy | |
| # Vercel handles the Next.js app through its GitHub integration. | |
| # This workflow only manages Supabase migrations. | |
| on: | |
| push: | |
| branches: [main] | |
| jobs: | |
| # ── Push Supabase migrations ───────────────────────────────────────────────── | |
| deploy-migrations: | |
| name: Push Supabase migrations | |
| runs-on: ubuntu-latest | |
| environment: production | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Supabase CLI | |
| uses: supabase/setup-cli@v1 | |
| with: | |
| version: latest | |
| - name: Push migrations | |
| env: | |
| SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | |
| run: | | |
| supabase link --project-ref ${{ secrets.SUPABASE_PROJECT_REF }} | |
| supabase db push |