Skip to content

Commit

Permalink
chore(ci): seperate vercel and supabase
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexcited committed Aug 12, 2023
1 parent 36dbf44 commit 994d42e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy-supabase.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy

on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'supabase/**'

jobs:
deploy:
name: Deploy to Supabase
runs-on: ubuntu-latest

env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }}

steps:
- uses: actions/checkout@v3
- uses: supabase/setup-cli@v1
with:
version: latest

- run: supabase functions deploy --project-ref $PROJECT_ID
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ on:
push:
branches:
- main
paths:
- '**'
- '!supabase/**'

jobs:
deploy:
name: Deploy to Vercel & Supabase
name: Deploy to Vercel
runs-on: ubuntu-latest

env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }}


steps:
- uses: actions/checkout@v3
- uses: amondnet/vercel-action@v25
Expand All @@ -26,8 +24,5 @@ jobs:
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel-args: "--prod"
github-comment: false
- uses: supabase/setup-cli@v1
with:
version: latest

- run: supabase functions deploy --project-ref $PROJECT_ID

0 comments on commit 994d42e

Please sign in to comment.