diff --git a/.github/workflows/call.deploy-subgraph.yml b/.github/workflows/call.deploy-subgraph.yml index 2c2e51709d..e997fddb17 100644 --- a/.github/workflows/call.deploy-subgraph.yml +++ b/.github/workflows/call.deploy-subgraph.yml @@ -5,7 +5,7 @@ on: inputs: vendor: required: true - description: "Where to deploy subgraph to; superfluid, graph, goldsky or airstack" + description: "Where to deploy subgraph to; superfluid, goldsky or airstack" type: string deployment_env: required: true diff --git a/.github/workflows/handler.deploy-production-subgraphs.yml b/.github/workflows/handler.deploy-production-subgraphs.yml index 4b2d6603de..c2e43093c3 100644 --- a/.github/workflows/handler.deploy-production-subgraphs.yml +++ b/.github/workflows/handler.deploy-production-subgraphs.yml @@ -12,12 +12,11 @@ on: inputs: vendor: required: true - description: "Where to deploy subgraph to; one of `superfluid`, `graph`, `goldsky` or `airstack`" + description: "Where to deploy subgraph to; one of `superfluid`, `goldsky` or `airstack`" default: "superfluid" type: choice options: - superfluid - - graph - goldsky - airstack deployment_env: diff --git a/packages/subgraph/tasks/deploy.sh b/packages/subgraph/tasks/deploy.sh index c6011dd757..2bd385f20b 100755 --- a/packages/subgraph/tasks/deploy.sh +++ b/packages/subgraph/tasks/deploy.sh @@ -126,7 +126,11 @@ deploy_to_goldsky() { local network="$1" # TODO: use tagging? - local subgraphName="protocol-$DEPLOYMENT_ENV-$network/1.0.0" + #Get subgraph version from package.json + PACKAGE_JSON_PATH="package.json" + SUBGRAPH_VERSION=$($JQ -r '.version' $PACKAGE_JSON_PATH) + + local subgraphName="protocol-$DEPLOYMENT_ENV-$network/$SUBGRAPH_VERSION" # Note: when using Graph CLI to deploy, it implicitly triggers build too, but Goldsky CLI doesn't, so we do it explicitly. $GRAPH_CLI build