From 94cc1b84cd1cbfb3b3f1b21b913611daa572b12f Mon Sep 17 00:00:00 2001 From: coffee-converter Date: Wed, 16 Dec 2020 04:05:55 -0600 Subject: [PATCH] deploy scripts use local access token file --- .gitignore | 3 +-- deploy.sh | 4 ++++ ropsten-deploy.sh | 4 ++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 deploy.sh create mode 100755 ropsten-deploy.sh diff --git a/.gitignore b/.gitignore index c5d6f52..6d1278f 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..873f46e --- /dev/null +++ b/deploy.sh @@ -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 diff --git a/ropsten-deploy.sh b/ropsten-deploy.sh new file mode 100755 index 0000000..04a1aa6 --- /dev/null +++ b/ropsten-deploy.sh @@ -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