-
Notifications
You must be signed in to change notification settings - Fork 20
78 lines (67 loc) · 2.73 KB
/
deploy_TestNet_UI.yml
File metadata and controls
78 lines (67 loc) · 2.73 KB
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
name: 2WP-app deploy UI for TestNet
on:
push:
tags:
- '*-rc'
# Declare default permissions as read only.
permissions: read-all
jobs:
checkout-and-build:
runs-on: ubuntu-latest
environment: testnet
permissions:
id-token: write
contents: read
steps:
- name: Get tag name.
id: get_tag_name
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Checkout
uses: actions/checkout@163217dfcd28294438ea1c1c149cfaf66eec283e # v4.2.1
with:
ref: ${{ steps.get_tag_name.outputs.VERSION }}
- name: Setup NodeJS
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af #v4.1.0
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build site
run: >
VUE_APP_HOTJAR_ID=${{ secrets.TESTNET_VUE_APP_HOTJAR_ID }}
VUE_APP_CLARITY_ID=${{ secrets.TESTNET_VUE_APP_CLARITY_ID }}
VUE_APP_COIN='test'
VUE_APP_MANIFEST_EMAIL='user@rsk.co'
VUE_APP_MANIFEST_APP_URL='https://powpeg.testnet.rootstock.io'
VUE_APP_API_BASE_URL='https://api.2wp.testnet.rootstock.io'
VUE_APP_RSK_NODE_HOST='https://public-node.testnet.rsk.co'
VUE_APP_RSK_EXPLORER='https://explorer.testnet.rootstock.io/'
VUE_APP_WALLET_ADDRESSES_HARD_STOP=100
VUE_APP_WALLET_ADDRESS_PER_CALL=20
VUE_APP_PEGOUT_MIN_AMOUNT_ALLOWED_IN_RBTC=0.004
VUE_APP_PEGIN_MIN_AMOUNT_ALLOWED_IN_BTC=0.005
VUE_APP_FAST_MINING_BLOCK=1
VUE_APP_AVERAGE_MINING_BLOCK=3
VUE_APP_SLOW_MINING_BLOCK=5
VUE_APP_LBC_ADDRESS='0xc2A630c053D12D63d32b025082f6Ba268db18300'
VUE_APP_FLYOVER_PEGOUT_QUOTE_DIFF_PERCENTAGE=2
VUE_APP_RECAPTCHA_NEW_TOKEN_TIME=40
VUE_APP_FLYOVER_PROVIDER_ID=2
VUE_APP_FLYOVER_NETWORK=Testnet
VUE_APP_CSP=https://staging.lps.tekscapital.com
VUE_APP_API_RESPONSE_TIMEOUT=10000
VUE_APP_REOWN_PROJECT_ID=${{ secrets.TESTNET_VUE_APP_REOWN_PROJECT_ID }}
VUE_APP_FLYOVER_DEPOSIT_PEGOUT_GAS=410700
npm run-script build
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
role-to-assume: ${{ secrets.TESTNET_ROLE_ARN }}
aws-region: us-east-1
- name: Deploy site to S3
run: |
aws s3 sync --delete --only-show-errors dist/ ${{ secrets.TESTNET_S3_BUCKET }}
- name: Invalidate CloudFront cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.TESTNET_CLOUDFRONT_DISTRIBUTION }} --paths "/*"