From 0a22a03d7e0808fae0b2230fe1cb3a1d5f9ef56c Mon Sep 17 00:00:00 2001 From: Juan Manuel Rodriguez Defago Date: Mon, 11 Sep 2023 16:21:10 -0300 Subject: [PATCH] fix: removed no-ipfs/ipfs workflow differentiation --- ...eploy-goerli-arbitrum-subgraph-no-ipfs.yml | 20 ----------- .../deploy-goerli-subgraph-no-ipfs.yml | 20 ----------- ...-production-arbitrum-subgraph-no-ipfs.yaml | 20 ----------- .../deploy-production-subgraph-no-ipfs.yaml | 20 ----------- .github/workflows/template-deploy.yaml | 35 +------------------ 5 files changed, 1 insertion(+), 114 deletions(-) delete mode 100644 .github/workflows/deploy-goerli-arbitrum-subgraph-no-ipfs.yml delete mode 100644 .github/workflows/deploy-goerli-subgraph-no-ipfs.yml delete mode 100644 .github/workflows/deploy-production-arbitrum-subgraph-no-ipfs.yaml delete mode 100644 .github/workflows/deploy-production-subgraph-no-ipfs.yaml diff --git a/.github/workflows/deploy-goerli-arbitrum-subgraph-no-ipfs.yml b/.github/workflows/deploy-goerli-arbitrum-subgraph-no-ipfs.yml deleted file mode 100644 index 574e35b1..00000000 --- a/.github/workflows/deploy-goerli-arbitrum-subgraph-no-ipfs.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Production Subgraph Non-IPFS (Arbitrum Goerli) - -on: - push: - tags: - - v* - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: false - -jobs: - deploy: - uses: ./.github/workflows/template-deploy.yaml - with: - ENVIRONMENT: production-arbitrum-goerli-no-ipfs - CONFIG: arbitrumGoerliAddressScript.ts - secrets: - NODE_AUTH_TOKEN: ${{ secrets.graphprotocol_npm_token }} - ACCESS_TOKEN: ${{ secrets.access_token }} diff --git a/.github/workflows/deploy-goerli-subgraph-no-ipfs.yml b/.github/workflows/deploy-goerli-subgraph-no-ipfs.yml deleted file mode 100644 index ad943796..00000000 --- a/.github/workflows/deploy-goerli-subgraph-no-ipfs.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Production Subgraph Non-IPFS (Goerli) - -on: - push: - tags: - - v* - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: false - -jobs: - deploy: - uses: ./.github/workflows/template-deploy.yaml - with: - ENVIRONMENT: production-goerli-no-ipfs - CONFIG: goerliAddressScript.ts - secrets: - NODE_AUTH_TOKEN: ${{ secrets.graphprotocol_npm_token }} - ACCESS_TOKEN: ${{ secrets.access_token }} diff --git a/.github/workflows/deploy-production-arbitrum-subgraph-no-ipfs.yaml b/.github/workflows/deploy-production-arbitrum-subgraph-no-ipfs.yaml deleted file mode 100644 index c979ba31..00000000 --- a/.github/workflows/deploy-production-arbitrum-subgraph-no-ipfs.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Production Subgraph Non-IPFS (Arbitrum) - -on: - push: - tags: - - v* - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: false - -jobs: - deploy: - uses: ./.github/workflows/template-deploy.yaml - with: - ENVIRONMENT: production-arbitrum-no-ipfs - CONFIG: mainnetArbitrumAddressScript.ts - secrets: - NODE_AUTH_TOKEN: ${{ secrets.graphprotocol_npm_token }} - ACCESS_TOKEN: ${{ secrets.access_token }} diff --git a/.github/workflows/deploy-production-subgraph-no-ipfs.yaml b/.github/workflows/deploy-production-subgraph-no-ipfs.yaml deleted file mode 100644 index c934342e..00000000 --- a/.github/workflows/deploy-production-subgraph-no-ipfs.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Production Subgraph Non-IPFS (Mainnet) - -on: - push: - tags: - - v* - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: false - -jobs: - deploy: - uses: ./.github/workflows/template-deploy.yaml - with: - ENVIRONMENT: production-no-ipfs - CONFIG: mainnetAddressScript.ts - secrets: - NODE_AUTH_TOKEN: ${{ secrets.graphprotocol_npm_token }} - ACCESS_TOKEN: ${{ secrets.access_token }} diff --git a/.github/workflows/template-deploy.yaml b/.github/workflows/template-deploy.yaml index 7fd878f6..f9c48520 100644 --- a/.github/workflows/template-deploy.yaml +++ b/.github/workflows/template-deploy.yaml @@ -26,61 +26,31 @@ jobs: if: ${{ inputs.ENVIRONMENT == 'staging-arbitrum' }} run: | echo "ENV_SUFFIX=graph-network-arbitrum-staging" >> $GITHUB_ENV - echo "IPFS_SUFFIX=" >> $GITHUB_ENV - name: Set mainnet staging environment variables if: ${{ inputs.ENVIRONMENT == 'staging-mainnet' }} run: | echo "ENV_SUFFIX=graph-network-mainnet-staging" >> $GITHUB_ENV - echo "IPFS_SUFFIX=" >> $GITHUB_ENV - name: Set mainnet environment variables if: ${{ inputs.ENVIRONMENT == 'production' }} run: | echo "ENV_SUFFIX=graph-network-mainnet" >> $GITHUB_ENV - echo "IPFS_SUFFIX=" >> $GITHUB_ENV - name: Set arbitrum environment variables if: ${{ inputs.ENVIRONMENT == 'production-arbitrum' }} run: | echo "ENV_SUFFIX=graph-network-arbitrum" >> $GITHUB_ENV - echo "IPFS_SUFFIX=" >> $GITHUB_ENV - name: Set goerli production environment variables if: ${{ inputs.ENVIRONMENT == 'production-goerli' }} run: | echo "ENV_SUFFIX=graph-network-goerli" >> $GITHUB_ENV - echo "IPFS_SUFFIX=" >> $GITHUB_ENV - name: Set arbitrum goerli production environment variables if: ${{ inputs.ENVIRONMENT == 'production-arbitrum-goerli' }} run: | echo "ENV_SUFFIX=graph-network-arbitrum-goerli" >> $GITHUB_ENV - echo "IPFS_SUFFIX=" >> $GITHUB_ENV - - - name: Set mainnet environment variables no ipfs - if: ${{ inputs.ENVIRONMENT == 'production-no-ipfs' }} - run: | - echo "ENV_SUFFIX=no-ipfs-network-ethereum" >> $GITHUB_ENV - echo "IPFS_SUFFIX=no-" >> $GITHUB_ENV - - - name: Set arbitrum environment variables no ipfs - if: ${{ inputs.ENVIRONMENT == 'production-arbitrum-no-ipfs' }} - run: | - echo "ENV_SUFFIX=no-ipfs-network-arbitrum" >> $GITHUB_ENV - echo "IPFS_SUFFIX=no-" >> $GITHUB_ENV - - - name: Set goerli production environment variables no ipfs - if: ${{ inputs.ENVIRONMENT == 'production-goerli-no-ipfs' }} - run: | - echo "ENV_SUFFIX=no-ipfs-network-goerli" >> $GITHUB_ENV - echo "IPFS_SUFFIX=no-" >> $GITHUB_ENV - - - name: Set arbitrum goerli production environment variables no ipfs - if: ${{ inputs.ENVIRONMENT == 'production-arbitrum-goerli-no-ipfs' }} - run: | - echo "ENV_SUFFIX=no-ipfs-network-arb-goerli" >> $GITHUB_ENV - echo "IPFS_SUFFIX=no-" >> $GITHUB_ENV - name: Checkout uses: actions/checkout@v3 @@ -89,7 +59,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v2 with: - node-version: '16' + node-version: '20' registry-url: https://registry.npmjs.org - name: yarn add ts-node run: yarn add ts-node @@ -99,9 +69,6 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} # Run scripts - - name: Prepare IPFS enabled/disabled files - run: ./node_modules/.bin/mustache ./config/${{ env.IPFS_SUFFIX }}ipfs.json ./src/mappings/helpers/metadata.template.ts > ./src/mappings/helpers/metadata.ts - - name: Prepare addresses ${{ inputs.ENVIRONMENT }} run: ./node_modules/.bin/ts-node config/${{ inputs.CONFIG }} && ./node_modules/.bin/mustache ./config/generatedAddresses.json ./config/addresses.template.ts > ./config/addresses.ts