-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.66 KB
/
release.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 5
name: Run release
steps:
- name: Checkout code so that it is available to use in the executing runner
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 21.7.3
- name: Install Semantic Release and plugins
run: |
npm install -g [email protected] \
@semantic-release/[email protected] \
@semantic-release/[email protected] \
@semantic-release/[email protected] \
@semantic-release/[email protected]
- name: Semantic Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB }}
deploy:
needs: release
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
- name: Setup Supabase CLI
uses: supabase/setup-cli@v1
with:
version: latest
- name: Link Supabase to Project
run: supabase link --project-ref $PROJECT_ID
- name: Run Migrations and Seeds
run: supabase db push --include-seed