generated from blockmatic-icebox/powerstack
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9d174d
commit 80ecd65
Showing
1 changed file
with
30 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Supabase Migrations | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # or your default branch | ||
paths: | ||
- 'apps/supabase/**' # Trigger only when there are changes in the Supabase app | ||
|
||
jobs: | ||
run-migrations: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up working directory | ||
run: cd apps/supabase | ||
|
||
- name: Run Supabase Migrations | ||
run: | | ||
curl -L https://github.com/supabase/cli/releases/latest/download/supabase_linux -o supabase | ||
chmod +x supabase | ||
./supabase link --project-ref kvdrzfyetdzigjkmgwgn --anon-key "$ANON_KEY" --service-role-key "$SERVICE_ROLE_KEY" | ||
./supabase db push | ||
env: | ||
ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} | ||
SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }} | ||
working-directory: ./apps/supabase |