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 9dc74661..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 @@ -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