-
Notifications
You must be signed in to change notification settings - Fork 2.2k
35 lines (31 loc) · 1.2 KB
/
snaefell-ui.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
name: Snaefell UI CI/CD
on:
workflow_dispatch:
jobs:
build-and-test:
if: ${{ github.actor != 'dependabot[bot]' }}
uses: ./.github/workflows/snaefell-ui--ci.yml
# Deployment name follow the pattern: deploy_<appname(snaefell-ui)>_<network(devnet|hekla|mainnet)>_<environment(preview|production)>
# The following Vercel project is not found, so disable it at least for now.
deploy_snaefell-ui_mainnet_preview:
if: ${{ github.actor != 'dependabot[bot]' }}
needs: build-and-test
uses: ./.github/workflows/repo--vercel-deploy.yml
with:
environment: "preview"
flags: ""
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_SNAEFELL_UI_MAINNET }}
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }}
vercel_token: ${{ secrets.VERCEL_TOKEN }}
deploy_snaefell-ui_mainnet_production:
if: ${{ github.actor != 'dependabot[bot]' }}
needs: build-and-test
uses: ./.github/workflows/repo--vercel-deploy.yml
with:
environment: "production"
flags: "--prod"
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_SNAEFELL_UI_MAINNET }}
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }}
vercel_token: ${{ secrets.VERCEL_TOKEN }}