Aggiornato .gitignore e aggiunto file di configurazione per Supabase #2
This file contains 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 Functions to Supabase | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
env: | |
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | |
PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: supabase/setup-cli@v1 | |
with: | |
version: latest | |
- run: | | |
supabase functions deploy comuni --no-verify-jwt --project-ref $PROJECT_ID | |
supabase functions deploy province --no-verify-jwt --project-ref $PROJECT_ID | |
supabase functions deploy regioni --no-verify-jwt --project-ref $PROJECT_ID |