feat: add SparklineWidget to dashboard builder with data fetching and… #33
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 to Supabase | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: # Allow manual trigger from GitHub UI | |
| jobs: | |
| deploy: | |
| name: Apply Migrations & Deploy Edge Functions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📥 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: 🔧 Setup Supabase CLI | |
| uses: supabase/setup-cli@v1 | |
| with: | |
| version: latest | |
| - name: 🔗 Link Supabase project | |
| run: supabase link --project-ref ${{ secrets.SUPABASE_PROJECT_ID }} | |
| env: | |
| SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | |
| - name: 🗃️ Apply database migrations | |
| run: supabase db push | |
| env: | |
| SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | |
| SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }} | |
| - name: ⚡ Deploy Edge Functions | |
| run: | | |
| supabase functions deploy create-user --no-verify-jwt | |
| supabase functions deploy delete-user --no-verify-jwt | |
| supabase functions deploy setup-admin --no-verify-jwt | |
| env: | |
| SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | |
| - name: ✅ Done | |
| run: echo "Database migrations applied and Edge Functions deployed successfully!" |