From 3a45d4117a716ada21b4acfc0250149588f7e686 Mon Sep 17 00:00:00 2001 From: geleeroyale Date: Thu, 16 May 2024 16:10:02 +0200 Subject: [PATCH 1/5] Create graph-studio-develop.yaml to support theGraph studio --- .github/workflows/graph-studio-develop.yaml | 63 +++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/graph-studio-develop.yaml diff --git a/.github/workflows/graph-studio-develop.yaml b/.github/workflows/graph-studio-develop.yaml new file mode 100644 index 0000000..b5bea4b --- /dev/null +++ b/.github/workflows/graph-studio-develop.yaml @@ -0,0 +1,63 @@ +name: Deploy to Graph Studio + +on: + push: + branches: [develop] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Lint + run: yarn lint + + deploy-staging-gnosis: + needs: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Generate Manifest + run: yarn generate-manifests + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: 'giveth-economy-xdai-staging' + graph_account: 'giveth' + graph_config_file: 'subgraph.deployment-7-gnosis.yaml' + graph_deploy_studio: true + + deploy-staging-optimism-goerli: + needs: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Generate Manifest + run: yarn generate-manifests + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: 'giveth-economy-optimism-staging' + graph_account: 'giveth' + graph_config_file: 'subgraph.deployment-7-optimism-goerli.yaml' + graph_deploy_studio: true From a975644a6be20c4d9cc12b24ba86e723d550b57a Mon Sep 17 00:00:00 2001 From: geleeroyale Date: Thu, 16 May 2024 16:12:45 +0200 Subject: [PATCH 2/5] Update graph-studio-develop.yaml node version to 18 for latest graph support --- .github/workflows/graph-studio-develop.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/graph-studio-develop.yaml b/.github/workflows/graph-studio-develop.yaml index b5bea4b..2e97f40 100644 --- a/.github/workflows/graph-studio-develop.yaml +++ b/.github/workflows/graph-studio-develop.yaml @@ -12,7 +12,7 @@ jobs: - name: Install node uses: actions/setup-node@v1 with: - node-version: 16 + node-version: 18 - name: Install run: yarn --frozen-lockfile - name: Lint @@ -26,7 +26,7 @@ jobs: - name: Install node uses: actions/setup-node@v1 with: - node-version: 16 + node-version: 18 - name: Install run: yarn --frozen-lockfile - name: Generate Manifest @@ -48,7 +48,7 @@ jobs: - name: Install node uses: actions/setup-node@v1 with: - node-version: 16 + node-version: 18 - name: Install run: yarn --frozen-lockfile - name: Generate Manifest From 792366dba320d741dc76f7104a4147c2eacbd333 Mon Sep 17 00:00:00 2001 From: geleeroyale Date: Thu, 16 May 2024 16:19:47 +0200 Subject: [PATCH 3/5] Update graph-studio-develop.yaml to reference correct deployed subgraph --- .github/workflows/graph-studio-develop.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/graph-studio-develop.yaml b/.github/workflows/graph-studio-develop.yaml index 2e97f40..e165f0a 100644 --- a/.github/workflows/graph-studio-develop.yaml +++ b/.github/workflows/graph-studio-develop.yaml @@ -35,7 +35,7 @@ jobs: with: graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}} graph_version_label: ${GITHUB_SHA::8} - graph_subgraph_name: 'giveth-economy-xdai-staging' + graph_subgraph_name: 'giveconomy-staging-gnosischain' graph_account: 'giveth' graph_config_file: 'subgraph.deployment-7-gnosis.yaml' graph_deploy_studio: true @@ -57,7 +57,7 @@ jobs: with: graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}} graph_version_label: ${GITHUB_SHA::8} - graph_subgraph_name: 'giveth-economy-optimism-staging' + graph_subgraph_name: 'giveth-staging-optimism-goerli' graph_account: 'giveth' graph_config_file: 'subgraph.deployment-7-optimism-goerli.yaml' graph_deploy_studio: true From 9df2e7ad8cc9ca3fdb9d47e0b18a783fd33fbdcf Mon Sep 17 00:00:00 2001 From: geleeroyale Date: Fri, 24 May 2024 18:31:56 +0200 Subject: [PATCH 4/5] Update graph-studio-develop.yaml --- .github/workflows/graph-studio-develop.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/graph-studio-develop.yaml b/.github/workflows/graph-studio-develop.yaml index e165f0a..afb9d9a 100644 --- a/.github/workflows/graph-studio-develop.yaml +++ b/.github/workflows/graph-studio-develop.yaml @@ -40,7 +40,7 @@ jobs: graph_config_file: 'subgraph.deployment-7-gnosis.yaml' graph_deploy_studio: true - deploy-staging-optimism-goerli: + deploy-staging-optimism-sepolia: needs: lint runs-on: ubuntu-latest steps: @@ -48,7 +48,7 @@ jobs: - name: Install node uses: actions/setup-node@v1 with: - node-version: 18 + node-version: 16 - name: Install run: yarn --frozen-lockfile - name: Generate Manifest @@ -57,7 +57,7 @@ jobs: with: graph_deploy_key: ${{secrets.GRAPH_DEPLOY_KEY}} graph_version_label: ${GITHUB_SHA::8} - graph_subgraph_name: 'giveth-staging-optimism-goerli' + graph_subgraph_name: 'giveconomy-staging-op-sepolia' graph_account: 'giveth' - graph_config_file: 'subgraph.deployment-7-optimism-goerli.yaml' + graph_config_file: 'subgraph.deployment-7-optimism-sepolia.yaml' graph_deploy_studio: true From 487968a1e9d1c7a812bf87daf419800273585222 Mon Sep 17 00:00:00 2001 From: geleeroyale Date: Fri, 24 May 2024 18:34:40 +0200 Subject: [PATCH 5/5] Update graph-studio-develop.yaml --- .github/workflows/graph-studio-develop.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/graph-studio-develop.yaml b/.github/workflows/graph-studio-develop.yaml index afb9d9a..ba8f8c6 100644 --- a/.github/workflows/graph-studio-develop.yaml +++ b/.github/workflows/graph-studio-develop.yaml @@ -48,7 +48,7 @@ jobs: - name: Install node uses: actions/setup-node@v1 with: - node-version: 16 + node-version: 18 - name: Install run: yarn --frozen-lockfile - name: Generate Manifest