Skip to content

Commit

Permalink
Add GitHub action to deploy Supabase Edge functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubno committed Jun 15, 2023
1 parent e5972d3 commit c70331c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/supabase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy Supabase Edge functions

on:
push:
paths:
- 'supabase/functions/**'
- '.github/workflows/supabase.yml'
branches:
- production

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_PROJECT_ID: ${{ vars.SUPABASE_PROJECT_ID }}

jobs:
deploy:
name: Deploy
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Supabase CLI
uses: supabase/setup-cli@v1
with:
version: latest

- name: Deploy supabase edge functions
run: supabase functions deploy --project-ref "$SUPABASE_PROJECT_ID"
3 changes: 3 additions & 0 deletions supabase/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@ redirect_uri = ""
# Overrides the default auth provider URL. Used to support self-hosted gitlab, single-tenant Azure,
# or any other third-party OIDC providers.
url = ""

[functions.new_user]
verify_jwt = false

0 comments on commit c70331c

Please sign in to comment.