Skip to content

Commit

Permalink
deploy scripts use local access token file
Browse files Browse the repository at this point in the history
  • Loading branch information
coffee-converter committed Dec 16, 2020
1 parent b9e6e36 commit 94cc1b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
.DS_STORE
deploy.sh
ropsten-deploy.sh
yarn-error.log
node_modules/
.idea/
build/
generated/
subgraph.yaml
thegraph-access-token.txt
4 changes: 4 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

THEGRAPH_ACCESS_TOKEN="$(cat thegraph-access-token.txt)"
npm run prepare:mainnet && ./node_modules/.bin/graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ wise-foundation/wise --access-token $THEGRAPH_ACCESS_TOKEN
4 changes: 4 additions & 0 deletions ropsten-deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

THEGRAPH_ACCESS_TOKEN="$(cat thegraph-access-token.txt)"
npm run prepare:ropsten && ./node_modules/.bin/graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ wise-foundation/wise-ropsten --access-token $THEGRAPH_ACCESS_TOKEN

0 comments on commit 94cc1b8

Please sign in to comment.