Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SUBGRAPH] Goldsky version label #1959

Merged
merged 3 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/call.deploy-subgraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/handler.deploy-production-subgraphs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
kasparkallas marked this conversation as resolved.
Show resolved Hide resolved
- goldsky
- airstack
deployment_env:
Expand Down
6 changes: 5 additions & 1 deletion packages/subgraph/tasks/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading