Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Merge pull request #48 from ubiquity/revert-pr-46-1729591080880 #62

Merge pull request #48 from ubiquity/revert-pr-46-1729591080880

Merge pull request #48 from ubiquity/revert-pr-46-1729591080880 #62

Workflow file for this run

name: Run Migration
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20.10.0"
- name: Install
run: yarn install
run-migration:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/development'
env:
SUPABASE_ACCESS_TOKEN: ${{ github.ref == 'refs/heads/development' && secrets.SUPABASE_ACCESS_TOKEN }}
SUPABASE_DB_PASSWORD: ${{ github.ref == 'refs/heads/development' && secrets.SUPABASE_DB_PASSWORD }}
PROJECT_ID: ${{ github.ref == 'refs/heads/development' && secrets.SUPABASE_PROJECT_ID }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- uses: supabase/setup-cli@v1
with:
version: latest
- name: Link Supabase project
run: supabase link --project-ref $PROJECT_ID
- name: Run migrations
run: supabase db push