-
Notifications
You must be signed in to change notification settings - Fork 13
94 lines (84 loc) · 2.31 KB
/
_vercel_deploy.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Vercel Deploys
on:
workflow_call:
inputs:
isExplorer:
type: boolean
required: true
isTypescriptSDK:
type: boolean
required: true
isAppsBackend:
type: boolean
required: true
isAppsUiKit:
type: boolean
required: true
isWalletDashboard:
type: boolean
required: true
shouldDeployPreview:
type: boolean
required: true
concurrency:
group: vercel-deploy-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
explorer-preview:
name: Vercel Explorer Preview
if: inputs.shouldDeployPreview && inputs.isExplorer
uses: ./.github/workflows/apps_explorer_deploy.yml
secrets: inherit
with:
isProd: false
isStaging: false
explorer-staging:
name: Vercel Explorer Staging
if: github.ref_name == 'develop'
uses: ./.github/workflows/apps_explorer_deploy.yml
secrets: inherit
with:
isProd: false
isStaging: true
ui-kit-preview:
name: Vercel UI Kit Preview
if: inputs.shouldDeployPreview && inputs.isAppsUiKit
uses: ./.github/workflows/apps_ui_kit_deploy.yml
secrets: inherit
with:
isProd: false
ui-kit-prod:
name: Vercel UI Kit Production
if: github.ref_name == 'develop'
uses: ./.github/workflows/apps_ui_kit_deploy.yml
secrets: inherit
with:
isProd: true
wallet-dashboard-preview:
name: Vercel Wallet Dashboard Preview
if: inputs.shouldDeployPreview && inputs.isWalletDashboard
uses: ./.github/workflows/apps_wallet_dashboard_deploy.yml
secrets: inherit
with:
isProd: false
wallet-dashboard-prod:
name: Vercel Wallet Dashboard Production
if: github.ref_name == 'develop'
uses: ./.github/workflows/apps_wallet_dashboard_deploy.yml
secrets: inherit
with:
isProd: true
apps-backend-preview:
name: Vercel apps-backend Preview
if: inputs.shouldDeployPreview && inputs.isAppsBackend
uses: ./.github/workflows/apps_backend_deploy.yml
secrets: inherit
with:
isProd: false
apps-backend-prod:
name: Vercel apps-backend Production
if: github.ref_name == 'develop'
uses: ./.github/workflows/apps_backend_deploy.yml
secrets: inherit
with:
isProd: true