-
Notifications
You must be signed in to change notification settings - Fork 6
/
amplify.yml
39 lines (39 loc) · 1.35 KB
/
amplify.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
version: 1
frontend:
phases:
preBuild:
commands:
- yarn install
build:
commands:
- |
for var in \
TARGET_ENV APP_MODE FAUCET_BASE_URL MASP_CHAIN_ID BLOCKED_COUNTRIES\
{FAUCET_,}CHAIN_ID{,S} NODE_ENV TOKEN_SYMBOL \
{STAKING,STAKING_TOKEN,VESTING_POOLS,REWARD_MASTER}_CONTRACT{,_{1,4,5,137,80001}} \
{STAKES_REPORTER,STAKE_REWARD_CONTROLLER_2}_CONTRACT{,_{1,4,137,80001}} \
FAUCET_CONTRACT_{1,4,5,137,80001} \
{BLOCK_EXPLORER,SUGGESTED_RPC_URL,REWARD_POOL_SIZE,STAKING_PROGRAM_DURATION,HAS_ADVANCED_STAKING}_{1,4,5,137,80001} \
ADVANCED_STAKING_{T_START,T_END,T_REDEMPTION,APY_START,APY_END} APY_PRP \
{ADVANCED_STAKE_REWARD_CONTROLLER,Z_ASSETS_REGISTRY,POOL_V0}_CONTRACT_80001 \
SUBGRAPH_IDS_80001 \
SENTRY_{DSN,AUTH_TOKEN}
do
if [ -n "${!var}" ]; then
echo "${var}=${!var}" >> dapp/.env
fi
done
- cat dapp/.env
- yarn build:types
- yarn build:dapp:staging
artifacts:
baseDirectory: /dapp/build
files:
- '**/*'
cache:
paths:
- node_modules/**/*
- contracts/node_modules/**/*
- crypto/node_modules/**/*
- dapp/node_modules/**/*
- subgraph/node_modules/**/*