-
Notifications
You must be signed in to change notification settings - Fork 2.2k
42 lines (37 loc) · 1.26 KB
/
taikoon-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
36
37
38
39
40
41
42
name: Taikoon UI CI/CD
on:
push:
paths:
- "packages/taikoon-ui/**"
branches-ignore:
- dependabot/**
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "packages/taikoon-ui/**"
jobs:
build-and-test:
uses: ./.github/workflows/taikoon-ui--ci.yml
# Deployment name follow the pattern: deploy_<appname(taikoon-ui)>_<network(devnet|hekla|mainnet)>_<environment(preview|production)>
deploy_taikoon-ui_mainnet_preview:
if: ${{ github.ref_name != 'main' }}
needs: build-and-test
uses: ./.github/workflows/repo--vercel-deploy.yml
with:
environment: "preview"
flags: ""
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_TAIKOON_UI_MAINNET }}
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }}
vercel_token: ${{ secrets.VERCEL_TOKEN }}
deploy_taikoon-ui_mainnet_production:
if: ${{ startsWith(github.ref, 'refs/tags/taikoon-ui-v') }}
needs: build-and-test
uses: ./.github/workflows/repo--vercel-deploy.yml
with:
environment: "production"
flags: "--prod"
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_TAIKOON_UI_MAINNET }}
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }}
vercel_token: ${{ secrets.VERCEL_TOKEN }}