Deploying with GitHub Actions
Use GitHub Actions as a CI / CD pipeline to deploy your Edge Functions.
You can use the official setup-cli
GitHub Action to run Supabase CLI commands in your GitHub Actions.
Sample workflow#
The following GitHub Action deploys all Edge Functions any time code is merged into the main
branch:
_24name: Deploy Function_24_24on:_24 push:_24 branches:_24 - main_24 workflow_dispatch:_24_24jobs:_24 deploy:_24 runs-on: ubuntu-latest_24_24 env:_24 SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}_24 PROJECT_ID: your-project-id_24_24 steps:_24 - uses: actions/checkout@v3_24_24 - uses: supabase/setup-cli@v1_24 with:_24 version: latest_24_24 - run: supabase functions deploy --project-ref $PROJECT_ID
Declarative configuration#
Individual function configuration like JWT verification and import map location can be set via the config.toml
file.
_10[functions.hello-world]_10verify_jwt = false
Resources#
- See the example on GitHub.