Edge Functions

GitHub Actions


Use the Supabase CLI together with GitHub Actions to automatically deploy our Supabase Edge Functions. View on GitHub.

1
name: Deploy Function
2
3
on:
4
push:
5
branches:
6
- main
7
workflow_dispatch:
8
9
jobs:
10
deploy:
11
runs-on: ubuntu-latest
12
13
env:
14
SUPABASE_ACCESS_TOKEN: YOUR_SUPABASE_ACCESS_TOKEN
15
PROJECT_ID: YOUR_SUPABASE_PROJECT_ID
16
17
steps:
18
- uses: actions/checkout@v4
19
20
- uses: supabase/setup-cli@v1
21
with:
22
version: latest
23
24
- run: supabase functions deploy --project-ref $PROJECT_ID

Since Supabase CLI v1.62.0 you can deploy all functions with a single command.

Individual function configuration like JWT verification and import map location can be set via the config.toml file.

1
[functions.hello-world]
2
verify_jwt = false