# Description There is a scheduled Ubuntu 20.04 brownout. Ubuntu 20.04 LTS runner will be removed on 2025-04-15. For more details, see https://github.com/actions/runner-images/issues/11101
37 lines
777 B
YAML
37 lines
777 B
YAML
name: Deploy Supabase Edge functions
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'supabase/functions/**'
|
|
- '.github/workflows/supabase.yml'
|
|
branches:
|
|
- main
|
|
|
|
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-22.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"
|