frontend (#27) #1
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 | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| paths: | |
| - ".github/workflows/deploy.yml" | |
| - "supabase/**" | |
| - "!**.md" | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| environment: production | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: supabase/setup-cli@v1 | |
| with: | |
| version: latest | |
| - name: 'Generate cron jobs' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: cron_jobs.sql | |
| path: cron_jobs.sql | |
| retention-days: 2 | |
| - name: 'Supabase - Remote Connect' | |
| env: | |
| PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }} | |
| SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | |
| SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }} | |
| shell: bash | |
| run: | | |
| supabase link --project-ref $PROJECT_ID | |
| supabase db push | |
| supabase functions deploy |