From 5154aac51a7716929268b37973ae9399c9d5dda7 Mon Sep 17 00:00:00 2001 From: Gabo Esquivel Date: Wed, 7 Feb 2024 15:20:52 -0600 Subject: [PATCH] wip: migrations updates --- .github/workflows/supabase-migrations.yml | 61 ++++++++++++++++------- 1 file changed, 42 insertions(+), 19 deletions(-) diff --git a/.github/workflows/supabase-migrations.yml b/.github/workflows/supabase-migrations.yml index 899141a2..1600a711 100644 --- a/.github/workflows/supabase-migrations.yml +++ b/.github/workflows/supabase-migrations.yml @@ -1,31 +1,54 @@ -name: Release + +name: Subgraph CI on: push: branches: - main - workflow_dispatch: - + pull_request: + branches: + - '**' jobs: - release: + echo: + name: Build and Test runs-on: ubuntu-latest - - env: - SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} - SUPABASE_DB_PASSWORD: ${{ secrets.PRODUCTION_DB_PASSWORD }} - SUPABASE_PROJECT_ID: ${{ secrets.PRODUCTION_PROJECT_ID }} - steps: - uses: actions/checkout@v3 - - - uses: supabase/setup-cli@v1 + - name: Use Node.js 16.x + uses: actions/setup-node@v3 with: - version: latest + node-version: 16.x + - name: echo + run: echo 'Migrations disabled' + +# name: Release + +# on: +# push: +# branches: +# - main +# workflow_dispatch: + +# jobs: +# release: +# runs-on: ubuntu-latest + +# env: +# SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} +# SUPABASE_DB_PASSWORD: ${{ secrets.PRODUCTION_DB_PASSWORD }} +# SUPABASE_PROJECT_ID: ${{ secrets.PRODUCTION_PROJECT_ID }} + +# steps: +# - uses: actions/checkout@v3 + +# - uses: supabase/setup-cli@v1 +# with: +# version: latest - - name: Link Supabase Project - run: supabase link --project-ref $SUPABASE_PROJECT_ID - working-directory: ./apps/supabase +# - name: Link Supabase Project +# run: supabase link --project-ref $SUPABASE_PROJECT_ID +# working-directory: ./apps/supabase - - name: Push Database Changes - run: supabase db push - working-directory: ./apps/supabase +# - name: Push Database Changes +# run: supabase db push +# working-directory: ./apps/supabase