Skip to content

Merge pull request #9 from ghost-in-the-machine-llc/supabase-edge-fn #3

Merge pull request #9 from ghost-in-the-machine-llc/supabase-edge-fn

Merge pull request #9 from ghost-in-the-machine-llc/supabase-edge-fn #3

name: Deploy to Staging
on:
push:
branches: staging
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ secrets.STAGING_SUPABASE_DB_PASSWORD }}
PROJECT_ID: ${{ vars.STAGING_SUPABASE_PROJECT_ID}}
jobs:
deploy-staging:
name: Setup & Deploy Supabase to Staging
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: supabase/setup-cli@v1
with:
version: latest
- name: Deploy Functions
run: supabase functions deploy --project-ref $PROJECT_ID