From 16e260ad3d8c39dc3a2b1e0cd4f72eb8855e8508 Mon Sep 17 00:00:00 2001 From: Tobias Hassebrock Date: Sun, 17 Dec 2023 12:52:56 +0100 Subject: [PATCH] Create supabase_deploy.yml --- .github/workflows/supabase_deploy.yml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/supabase_deploy.yml diff --git a/.github/workflows/supabase_deploy.yml b/.github/workflows/supabase_deploy.yml new file mode 100644 index 00000000..a8f676bb --- /dev/null +++ b/.github/workflows/supabase_deploy.yml @@ -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