diff --git a/subgraph/README.md b/subgraph/README.md index 7266ccf..85c7055 100644 --- a/subgraph/README.md +++ b/subgraph/README.md @@ -31,7 +31,14 @@ To build and deploy the subgraph to the graph hosted service: ``` # local deployment ./scripts/deploy-local.sh mainnet ampleforth-token-geyser-v2 +``` + +You should have your own Goldsky API key to use with the Goldsky CLI. +Note you must set the (new) version to deploy to, and then update the tag separately. +``` # prod deployment -./scripts/deploy.sh mainnet ampleforth-token-geyser-v2 -``` \ No newline at end of file +./scripts/deploy.sh mainnet ampleforth-token-geyser-v2 +# once deployed, update the tag that frg-web-api looks for. +goldsky subgraph tag create ampleforth-token-geyser-v2/ --tag prod +``` diff --git a/subgraph/scripts/deploy.sh b/subgraph/scripts/deploy.sh index a08341d..c974fc2 100755 --- a/subgraph/scripts/deploy.sh +++ b/subgraph/scripts/deploy.sh @@ -3,10 +3,4 @@ set -e yarn mustache ./configs/$1.json subgraph.template.yaml > ./subgraph.yaml -yarn codegen - -yarn build - -yarn graph deploy $2 \ - --node https://subgraphs.alchemy.com/api/subgraphs/deploy \ - --deploy-key $GRAPH_AUTH \ No newline at end of file +goldsky subgraph deploy $2/$3 --path .