Skip to content

Commit

Permalink
Create supabase_deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Donnerstagnacht authored Dec 17, 2023
1 parent df999ca commit 16e260a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/supabase_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy Migrations to Staging


on:
push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-22.04

env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN_STAGING }}
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_STAGING_DB_PASSWORD }}
STAGING_PROJECT_ID: ${{ secrets.SUPABASE_STAGING_PROJECT_ID }}

steps:
- uses: actions/checkout@v3

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

- run: |
supabase link --project-ref $STAGING_PROJECT_ID
supabase db push --include-all

0 comments on commit 16e260a

Please sign in to comment.