diff --git a/.github/workflows/graph-manual.yaml b/.github/workflows/graph-manual.yaml deleted file mode 100644 index 9d089d0..0000000 --- a/.github/workflows/graph-manual.yaml +++ /dev/null @@ -1,42 +0,0 @@ -name: Deploy Graph Manual - -on: - workflow_dispatch: - inputs: - # network: - # description: 'Network to build for (mainnet, matic)' - # required: true - # default: 'mainnet' - subgraph: - description: 'Name of the subgraph' - required: true - default: 'subgraph-template' - branch: - description: 'Branch to build (development, staging, master or another)' - required: true - default: 'master' - -jobs: - deploy: - runs-on: ubuntu-latest - env: - GRAPH_SUBGRAPH_ACCOUNT: ${{ github.repository_owner }} - GRAPH_SUBGRAPH_NAME: ${{ github.event.inputs.subgraph }} - GRAPH_CONFIG_FILE: subgraph.yaml - NETWORK: mainnet # ${{ github.event.inputs.network }} - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen:$NETWORK - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: $GRAPH_SUBGRAPH_NAME - graph_account: $GRAPH_SUBGRAPH_ACCOUNT - graph_config_file: $GRAPH_CONFIG_FILE diff --git a/.github/workflows/graph-staging.yaml b/.github/workflows/graph-staging.yaml deleted file mode 100644 index b620fe3..0000000 --- a/.github/workflows/graph-staging.yaml +++ /dev/null @@ -1,140 +0,0 @@ -name: Deploy Graph to Staging - -on: - push: - branches: [staging] - -jobs: - deploy-mainnet: - runs-on: ubuntu-latest - environment: graph - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: "balancer-gauges-beta" - graph_account: "balancer-labs" - graph_config_file: "subgraph.yaml" - deploy-goerli: - runs-on: ubuntu-latest - environment: graph - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: "balancer-gauges-goerli-beta" - graph_account: "balancer-labs" - graph_config_file: "subgraph.goerli.yaml" - deploy-arbitrum: - runs-on: ubuntu-latest - environment: graph - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: "balancer-gauges-arbitrum-beta" - graph_account: "balancer-labs" - graph_config_file: "subgraph.arbitrum.yaml" - deploy-polygon: - runs-on: ubuntu-latest - environment: graph - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: "balancer-gauges-polygon-beta" - graph_account: "balancer-labs" - graph_config_file: "subgraph.polygon.yaml" - deploy-optimism: - runs-on: ubuntu-latest - environment: graph - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: "balancer-gauges-optimism-beta" - graph_account: "balancer-labs" - graph_config_file: "subgraph.optimism.yaml" - deploy-gnosis: - runs-on: ubuntu-latest - environment: graph - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: "balancer-gauges-gnosis-chain-b" - graph_account: "balancer-labs" - graph_config_file: "subgraph.gnosis.yaml" - deploy-avalanche: - runs-on: ubuntu-latest - environment: graph - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: "balancer-gauges-avalanche-beta" - graph_account: "balancer-labs" - graph_config_file: "subgraph.avalanche.yaml" diff --git a/.github/workflows/graph-studio-staging.yaml b/.github/workflows/graph-studio-staging.yaml index 3f4e63e..a09392b 100644 --- a/.github/workflows/graph-studio-staging.yaml +++ b/.github/workflows/graph-studio-staging.yaml @@ -5,6 +5,153 @@ on: branches: [staging] jobs: + deploy-mainnet: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_NEW_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: "balancer-gauges-beta" + graph_account: "balancer-labs" + graph_config_file: "subgraph.yaml" + graph_deploy_studio: true + deploy-goerli: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_NEW_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: "balancer-gauges-goerli-beta" + graph_account: "balancer-labs" + graph_config_file: "subgraph.goerli.yaml" + graph_deploy_studio: true + deploy-arbitrum: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_NEW_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: "balancer-gauges-arbitrum-beta" + graph_account: "balancer-labs" + graph_config_file: "subgraph.arbitrum.yaml" + graph_deploy_studio: true + deploy-polygon: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_NEW_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: "balancer-gauges-polygon-beta" + graph_account: "balancer-labs" + graph_config_file: "subgraph.polygon.yaml" + graph_deploy_studio: true + deploy-optimism: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_NEW_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: "balancer-gauges-optimism-beta" + graph_account: "balancer-labs" + graph_config_file: "subgraph.optimism.yaml" + graph_deploy_studio: true + deploy-gnosis: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_NEW_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: "balancer-gauges-gnosis-chain-b" + graph_account: "balancer-labs" + graph_config_file: "subgraph.gnosis.yaml" + graph_deploy_studio: true + deploy-avalanche: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_NEW_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: "balancer-gauges-avalanche-beta" + graph_account: "balancer-labs" + graph_config_file: "subgraph.avalanche.yaml" + graph_deploy_studio: true deploy-polygon-zkevm: runs-on: ubuntu-latest environment: graph @@ -73,4 +220,4 @@ jobs: graph_subgraph_name: "balancer-gauges-base-beta" graph_account: "balancer-labs" graph_config_file: "subgraph.base.yaml" - graph_deploy_studio: true \ No newline at end of file + graph_deploy_studio: true diff --git a/.github/workflows/graph-studio.yaml b/.github/workflows/graph-studio.yaml index b0a5ce3..4354740 100644 --- a/.github/workflows/graph-studio.yaml +++ b/.github/workflows/graph-studio.yaml @@ -5,6 +5,153 @@ on: branches: [master] jobs: + deploy-mainnet: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_NEW_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: "balancer-gauges" + graph_account: "balancer-labs" + graph_config_file: "subgraph.yaml" + graph_deploy_studio: true + deploy-goerli: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_NEW_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: "balancer-gauges-goerli" + graph_account: "balancer-labs" + graph_config_file: "subgraph.goerli.yaml" + graph_deploy_studio: true + deploy-arbitrum: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_NEW_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: "balancer-gauges-arbitrum" + graph_account: "balancer-labs" + graph_config_file: "subgraph.arbitrum.yaml" + graph_deploy_studio: true + deploy-polygon: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_NEW_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: "balancer-gauges-polygon" + graph_account: "balancer-labs" + graph_config_file: "subgraph.polygon.yaml" + graph_deploy_studio: true + deploy-optimism: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_NEW_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: "balancer-gauges-optimism" + graph_account: "balancer-labs" + graph_config_file: "subgraph.optimism.yaml" + graph_deploy_studio: true + deploy-gnosis: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_NEW_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: "balancer-gauges-gnosis-chain" + graph_account: "balancer-labs" + graph_config_file: "subgraph.gnosis.yaml" + graph_deploy_studio: true + deploy-avalanche: + runs-on: ubuntu-latest + environment: graph + steps: + - uses: actions/checkout@v2 + - name: Install node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Install + run: yarn --frozen-lockfile + - name: Codegen + run: yarn codegen + - uses: balancer-labs/graph-deploy@v0.0.1 + with: + graph_deploy_key: ${{secrets.GRAPH_NEW_DEPLOY_KEY}} + graph_version_label: ${GITHUB_SHA::8} + graph_subgraph_name: "balancer-gauges-avalanche" + graph_account: "balancer-labs" + graph_config_file: "subgraph.avalanche.yaml" + graph_deploy_studio: true deploy-polygon-zkevm: runs-on: ubuntu-latest environment: graph diff --git a/.github/workflows/graph.yaml b/.github/workflows/graph.yaml deleted file mode 100644 index af8ee28..0000000 --- a/.github/workflows/graph.yaml +++ /dev/null @@ -1,141 +0,0 @@ -name: Deploy Graph - -on: - push: - branches: [master] - -jobs: - deploy-mainnet: - runs-on: ubuntu-latest - environment: graph - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: "balancer-gauges" - graph_account: "balancer-labs" - graph_config_file: "subgraph.yaml" - deploy-goerli: - runs-on: ubuntu-latest - environment: graph - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: "balancer-gauges-goerli" - graph_account: "balancer-labs" - graph_config_file: "subgraph.goerli.yaml" - deploy-arbitrum: - runs-on: ubuntu-latest - environment: graph - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: "balancer-gauges-arbitrum" - graph_account: "balancer-labs" - graph_config_file: "subgraph.arbitrum.yaml" - deploy-polygon: - runs-on: ubuntu-latest - environment: graph - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: "balancer-gauges-polygon" - graph_account: "balancer-labs" - graph_config_file: "subgraph.polygon.yaml" - deploy-optimism: - runs-on: ubuntu-latest - environment: graph - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: "balancer-gauges-optimism" - graph_account: "balancer-labs" - graph_config_file: "subgraph.optimism.yaml" - deploy-gnosis: - runs-on: ubuntu-latest - environment: graph - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: "balancer-gauges-gnosis-chain" - graph_account: "balancer-labs" - graph_config_file: "subgraph.gnosis.yaml" - deploy-avalanche: - runs-on: ubuntu-latest - environment: graph - steps: - - uses: actions/checkout@v2 - - name: Install node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Install - run: yarn --frozen-lockfile - - name: Codegen - run: yarn codegen - - uses: balancer-labs/graph-deploy@v0.0.1 - with: - graph_access_token: ${{ secrets.GRAPH_ACCESS_TOKEN }} - graph_subgraph_name: "balancer-gauges-avalanche" - graph_account: "balancer-labs" - graph_config_file: "subgraph.avalanche.yaml" -