-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (55 loc) · 1.7 KB
/
xtoken-ui-prd.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
name: Deploy production(xtoken-ui)
on:
push:
tags:
- "ui-*"
env:
DOCKER_REGISTRY: ghcr.io
jobs:
deploy-website:
name: Deploy Website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v2
with:
repository: darwinia-network/devops
path: .github
- uses: ./.github/actions/smart-vercel
name: Deploy xtoken-ui (mainnet)
with:
node_version: 20
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
script_install: npm i
script_build: npm run build:mainnet -w xtoken-ui
dist_path: packages/xtoken-ui/dist
project_name: xtoken-ui
alias_domain: "xtokenui-prd-mainnet"
prod_mode: true
enable_cache: true
enable_notify_slack: true
slack_channel: helixbox-ui
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}
- uses: ./.github/actions/smart-vercel
name: Deploy xtoken-ui (testnet)
with:
node_version: 20
vercel_token: ${{ secrets.VERCEL_TOKEN }}
vercel_group: itering
preview_output: true
script_install: npm i
script_build: npm run build:testnet -w xtoken-ui
dist_path: packages/xtoken-ui/dist
project_name: xtoken-ui-test
alias_domain: "xtokenui-prd-testnet"
prod_mode: true
enable_cache: true
enable_notify_slack: true
<<<<<<< HEAD
slack_channel: helixbox-xtoken
=======
slack_channel: helixbox-ui
>>>>>>> main
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}