-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: attempt to fix migrations and seeding (number 2)
- Loading branch information
1 parent
9742a8b
commit 7051461
Showing
1 changed file
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,19 +40,21 @@ jobs: | |
runs-on: ubuntu-latest | ||
env: | ||
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} | ||
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }} | ||
PROJECT_ID: ${{ secrets.PROJECT_ID }} | ||
steps: | ||
- name: Checkout code so that it is available to use in the executing runner | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: supabase/setup-cli@v1 | ||
- name: Setup Supabase CLI | ||
uses: supabase/setup-cli@v1 | ||
with: | ||
version: latest | ||
|
||
- name: Run Migrations | ||
run: supabase db push --project-ref ${{ env.PROJECT_ID }} | ||
- name: Link Supabase to Project | ||
run: supabase link --project-ref $PROJECT_ID | ||
|
||
- name: Seed Database | ||
run: supabase db seed --project-ref ${{ env.PROJECT_ID }} | ||
- name: Run Migrations and Seeds | ||
run: supabase db push |