-
Notifications
You must be signed in to change notification settings - Fork 19
/
deploy-travis.sh
executable file
·35 lines (29 loc) · 887 Bytes
/
deploy-travis.sh
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
if [ ! -z "$access_token" ]; then
# set for production
export graph_node="https://api.thegraph.com/deploy/"
export ipfs_node="https://api.thegraph.com/ipfs-daostack/"
# deploy mainnet
export network="mainnet"
export subgraph="daostack/master"
export start_block=7400000
npm run deploy
# deploy rinkeby
export network="rinkeby"
export subgraph="daostack/master_rinkeby"
start_block=0
npm run deploy
# Switch to staging key
export access_token=$staging_access_token
# set for production
export graph_node="https://api.staging.thegraph.com/deploy/"
# deploy mainnet
export network="mainnet"
export subgraph="daostack/master"
start_block=7400000
npm run deploy
# deploy rinkeby
export network="rinkeby"
export subgraph="daostack/master_rinkeby"
start_block=0
npm run deploy
fi