auto deploy og image
This commit is contained in:
26
.github/workflows/og_images.yml
vendored
Normal file
26
.github/workflows/og_images.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Deploy Function
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- 'supabase/functions/og-images'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
|
||||
PROJECT_ID: {{ secrets.PROJECT_ID }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: supabase/setup-cli@v1
|
||||
with:
|
||||
version: 1.0.0
|
||||
|
||||
- run: supabase functions deploy og-images --project-ref $PROJECT_ID
|
||||
Reference in New Issue
Block a user