-
Notifications
You must be signed in to change notification settings - Fork 8
58 lines (55 loc) · 1.71 KB
/
deploy-staging.yml
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
name: Deploy Staging
on:
push:
branches: [dev]
workflow_dispatch:
inputs:
skip-supabase-deploy:
description: 'Whether to skip the Supabase deployment.'
required: false
default: 'false'
workflow_call:
secrets:
VERCEL_TOKEN:
description: 'Vercel token'
required: true
VERCEL_PROJECT_ID:
description: 'Vercel project id'
required: true
VERCEL_ORG_ID:
description: 'Vercel org id'
required: true
SUPABASE_ACCESS_TOKEN:
description: 'Supabase access token'
required: true
STAGING_SUPABASE_PROJECT_ID:
description: 'Staging Supabase project id'
required: true
STAGING_SUPABASE_DB_PASSWORD:
description: 'Staging Supabase db password'
required: true
CI_QA_NOTIFICATION_URL:
description: 'QA notification url'
required: true
concurrency:
group: ${{ github.workflow }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
ref: dev
- name: Deploy
uses: ./.github/actions/deploy
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
production: false
supabase-project-id: ${{ secrets.STAGING_SUPABASE_PROJECT_ID }}
supabase-access-token: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
supabase-db-password: ${{ secrets.STAGING_SUPABASE_DB_PASSWORD }}
qa-notification-url: ${{ secrets.CI_QA_NOTIFICATION_URL }}
skip-supabase-deploy: ${{ inputs.skip-supabase-deploy }}