From 397833e00b1ba3064a3eb49198b253a3fcfe34d0 Mon Sep 17 00:00:00 2001 From: geleeroyale Date: Thu, 16 May 2024 16:28:29 +0200 Subject: [PATCH 1/2] Create graph-studio-main.yaml to support theGraph studio --- .github/workflows/graph-studio-main.yaml | 63 ++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/graph-studio-main.yaml diff --git a/.github/workflows/graph-studio-main.yaml b/.github/workflows/graph-studio-main.yaml new file mode 100644 index 0000000..8b86bf1 --- /dev/null +++ b/.github/workflows/graph-studio-main.yaml @@ -0,0 +1,63 @@ +name: Deploy
to Graph Studio + +on: + push: + branches: [main] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 18 + - name: Install + run: yarn --frozen-lockfile + - name: Lint + run: yarn lint + + deploy-mainnet: + needs: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 18 + - 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-giveconomy-mainnet' + graph_account: 'giveth' + graph_config_file: 'subgraph.production-mainnet.yaml' + graph_deploy_studio: true + + deploy-gnosis: + needs: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 18 + - 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-giveconomy-gnosischain' + graph_account: 'giveth' + graph_config_file: 'subgraph.production-gnosis.yaml' + graph_deploy_studio: true From 543f578eb3057c4b630b79560ab2740aeeecb7df Mon Sep 17 00:00:00 2001 From: geleeroyale Date: Thu, 16 May 2024 17:39:57 +0200 Subject: [PATCH 2/2] Update graph-studio-main.yaml --- .github/workflows/graph-studio-main.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/graph-studio-main.yaml b/.github/workflows/graph-studio-main.yaml index 8b86bf1..aa6ddde 100644 --- a/.github/workflows/graph-studio-main.yaml +++ b/.github/workflows/graph-studio-main.yaml @@ -61,3 +61,25 @@ jobs: graph_account: 'giveth' graph_config_file: 'subgraph.production-gnosis.yaml' graph_deploy_studio: true + + deploy-optimism: + needs: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 18 + - 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-giveconomy-optimism' + graph_account: 'giveth' + graph_config_file: 'subgraph.production-optimism-mainnet.yaml' + graph_deploy_studio: true