Skip to content

Commit

Permalink
Fix deploy CI job (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsudmi authored Jul 20, 2022
1 parent bafe999 commit 9a3b965
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 15 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ jobs:
- name: Install dependencies
run: npm install

- name: Install Graph CLI
run: |
npm install -g @graphprotocol/graph-cli
graph auth https://api.thegraph.com/deploy/ ${{ secrets.THEGRAPH_TOKEN }}
- name: Authenticate to Graph Service
run: npx run graph auth https://api.thegraph.com/deploy/ ${{ secrets.THEGRAPH_TOKEN }}

- name: Deploy Subgraphs
env:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stakewise-subgraphs",
"version": "1.4.0",
"version": "1.4.1",
"description": "Subgraphs for the StakeWise Protocol",
"repository": "https://github.com/stakewise/subgraphs",
"license": "AGPL-3.0-only",
Expand Down
2 changes: 1 addition & 1 deletion packages/constants/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "const",
"version": "1.4.0",
"version": "1.4.1",
"license": "AGPL-3.0-only",
"main": "index.ts",
"type": "module",
Expand Down
6 changes: 3 additions & 3 deletions subgraphs/ethereum/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethereum",
"version": "1.4.0",
"version": "1.4.1",
"license": "AGPL-3.0-only",
"scripts": {
"prepare:goerli": "npm run --prefix=../../packages/constants prepare:goerli && mustache config/goerli.json subgraph.template.yaml > subgraph.yaml",
Expand All @@ -10,12 +10,12 @@
"prepare:mainnet": "npm run --prefix=../../packages/constants prepare:mainnet && mustache config/mainnet.json subgraph.template.yaml > subgraph.yaml",
"build:mainnet": "npm run prepare:mainnet && graph codegen subgraph.yaml && graph build subgraph.yaml",
"create:mainnet:local": "graph create --node $GRAPH_MAINNET_URL stakewise/ethereum",
"deploy:mainnet:local": "npm run build:mainnet && npm run create:mainnet:local && graph deploy --version-label 1.4.0 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/ethereum",
"deploy:mainnet:local": "npm run build:mainnet && npm run create:mainnet:local && graph deploy --version-label 1.4.1 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/ethereum",

"prepare:gnosis": "npm run --prefix=../../packages/constants prepare:gnosis && mustache config/gnosis.json subgraph.template.yaml > subgraph.yaml",
"build:gnosis": "npm run prepare:gnosis && graph codegen subgraph.yaml && graph build subgraph.yaml",
"deploy:gnosis": "npm run build:gnosis && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/ethereum-gnosis",
"create:gnosis:local": "graph create --node $GRAPH_GNOSIS_URL stakewise/ethereum",
"deploy:gnosis:local": "npm run build:gnosis && npm run create:gnosis:local && graph deploy --version-label 1.4.0 --node $GRAPH_GNOSIS_URL --ipfs $IPFS_GNOSIS_URL stakewise/ethereum"
"deploy:gnosis:local": "npm run build:gnosis && npm run create:gnosis:local && graph deploy --version-label 1.4.1 --node $GRAPH_GNOSIS_URL --ipfs $IPFS_GNOSIS_URL stakewise/ethereum"
}
}
8 changes: 4 additions & 4 deletions subgraphs/stakewise/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stakewise",
"version": "1.4.0",
"version": "1.4.1",
"license": "AGPL-3.0-only",
"scripts": {
"prepare:goerli": "npm run --prefix=../../packages/constants prepare:goerli && mustache config/goerli.json subgraph.template.yaml > subgraph.yaml",
Expand All @@ -11,7 +11,7 @@
"build:mainnet": "npm run prepare:mainnet && graph codegen subgraph.yaml && graph build subgraph.yaml",
"deploy:mainnet": "npm run build:mainnet && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/stakewise-mainnet",
"create:mainnet:local": "graph create --node $GRAPH_MAINNET_URL stakewise/stakewise",
"deploy:mainnet:local": "npm run build:mainnet && npm run create:mainnet:local && graph deploy --version-label 1.4.0 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/stakewise",
"deploy:mainnet:local": "npm run build:mainnet && npm run create:mainnet:local && graph deploy --version-label 1.4.1 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/stakewise",

"prepare:harbour_goerli": "npm run --prefix=../../packages/constants prepare:harbour_goerli && mustache config/harbour_goerli.json subgraph.template.yaml > subgraph.yaml",
"build:harbour_goerli": "npm run prepare:harbour_goerli && graph codegen subgraph.yaml && graph build subgraph.yaml",
Expand All @@ -21,12 +21,12 @@
"build:harbour_mainnet": "npm run prepare:harbour_mainnet && graph codegen subgraph.yaml && graph build subgraph.yaml",
"deploy:harbour_mainnet": "npm run build:harbour_mainnet && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/stakewise-harbour-mainnet",
"create:harbour_mainnet:local": "graph create --node $GRAPH_MAINNET_URL stakewise/stakewise-harbour",
"deploy:harbour_mainnet:local": "npm run build:mainnet && npm run create:mainnet:local && graph deploy --version-label 1.4.0 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/stakewise-harbour",
"deploy:harbour_mainnet:local": "npm run build:mainnet && npm run create:mainnet:local && graph deploy --version-label 1.4.1 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/stakewise-harbour",

"prepare:gnosis": "npm run --prefix=../../packages/constants prepare:gnosis && mustache config/gnosis.json subgraph.template.yaml > subgraph.yaml",
"build:gnosis": "npm run prepare:gnosis && graph codegen subgraph.yaml && graph build subgraph.yaml",
"deploy:gnosis": "npm run build:gnosis && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/stakewise-gnosis",
"create:gnosis:local": "graph create --node $GRAPH_GNOSIS_URL stakewise/stakewise",
"deploy:gnosis:local": "npm run build:gnosis && npm run create:gnosis:local && graph deploy --version-label 1.4.0 --node $GRAPH_GNOSIS_URL --ipfs $IPFS_GNOSIS_URL stakewise/stakewise"
"deploy:gnosis:local": "npm run build:gnosis && npm run create:gnosis:local && graph deploy --version-label 1.4.1 --node $GRAPH_GNOSIS_URL --ipfs $IPFS_GNOSIS_URL stakewise/stakewise"
}
}
4 changes: 2 additions & 2 deletions subgraphs/uniswap-v3/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uniswap-v3",
"version": "1.4.0",
"version": "1.4.1",
"license": "AGPL-3.0-only",
"scripts": {
"prepare:goerli": "npm run --prefix=../../packages/constants prepare:goerli && mustache config/goerli.json subgraph.template.yaml > subgraph.yaml",
Expand All @@ -11,6 +11,6 @@
"build:mainnet": "npm run prepare:mainnet && graph codegen subgraph.yaml && graph build subgraph.yaml",
"deploy:mainnet": "npm run build:mainnet && graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ stakewise/uniswap-v3-mainnet",
"create:mainnet:local": "graph create --node $GRAPH_MAINNET_URL stakewise/uniswap-v3",
"deploy:mainnet:local": "npm run build:mainnet && npm run create:mainnet:local && graph deploy --version-label 1.4.0 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/uniswap-v3"
"deploy:mainnet:local": "npm run build:mainnet && npm run create:mainnet:local && graph deploy --version-label 1.4.1 --node $GRAPH_MAINNET_URL --ipfs $IPFS_MAINNET_URL stakewise/uniswap-v3"
}
}

0 comments on commit 9a3b965

Please sign in to comment.