Home

GitHub Actions

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

name: Deploy Function

on:
  push:
    branches:
      - main
  workflow_dispatch:

jobs:
  deploy:
    runs-on: ubuntu-latest

    env:
      SUPABASE_ACCESS_TOKEN: YOUR_SUPABASE_ACCESS_TOKEN
      PROJECT_ID: YOUR_SUPABASE_PROJECT_ID

    steps:
      - uses: actions/checkout@v3

      - uses: supabase/setup-cli@v1
        with:
          version: 1.0.0

      - run: supabase functions deploy github-action-deploy --project-ref $PROJECT_ID
Need some help?

Not to worry, our specialist engineers are here to help. Submit a support ticket through the Dashboard.