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 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ on:
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"
VERSION_LABEL=$($JQ -r '.version' $PACKAGE_JSON_PATH)
kasparkallas marked this conversation as resolved.
Show resolved Hide resolved

local subgraphName="protocol-$DEPLOYMENT_ENV-$network/$VERSION_LABEL"

# 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