https://github.com/thorwebdev/supa-edge-func-github-action-deploy
Example deploying Supabase Edge Functions via GitHub Actions
https://github.com/thorwebdev/supa-edge-func-github-action-deploy
Last synced: about 1 year ago
JSON representation
Example deploying Supabase Edge Functions via GitHub Actions
- Host: GitHub
- URL: https://github.com/thorwebdev/supa-edge-func-github-action-deploy
- Owner: thorwebdev
- Created: 2022-10-07T06:52:03.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-07T07:14:08.000Z (over 3 years ago)
- Last Synced: 2025-03-26T02:51:58.727Z (about 1 year ago)
- Language: TypeScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitHub Actions Deploy
This example includes a [deploy GitHub Action](./.github/workflows/deploy.yaml) that automatically deploys your Supabase Edge Functions when pushing to or merging into the main branch.
You can use the [`setup-cli` GitHub Action](https://github.com/marketplace/actions/supabase-cli-action) to run Supabase CLI commands in your GitHub Actions, for example to deploy a Supabase Edge Function:
```yaml
name: Deploy Function
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
PROJECT_ID: zdtdtxajzydjqzuktnqx
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
```