Skip to content

Commit

Permalink
wip: migrations updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gaboesquivel committed Feb 7, 2024
1 parent a69a60e commit 5154aac
Showing 1 changed file with 42 additions and 19 deletions.
61 changes: 42 additions & 19 deletions .github/workflows/supabase-migrations.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5154aac

Please sign in to comment.