-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 938 Bytes
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Check
on:
push:
branches:
- main
permissions:
contents: read
jobs:
migration:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Setup | Checkout
uses: actions/checkout@v4
- name: Setup | Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Setup | Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm
- name: Setup | Install Dependencies
run: pnpm install --frozen-lockfile
- name: Run | Migrate
run: |
pnpm exec supabase link --project-ref ${SUPABASE_PROJECT_ID}
pnpm exec supabase db push
env:
SUPABASE_PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }}
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }}
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}