Skip to content

Commit

Permalink
fix: removed no-ipfs/ipfs workflow differentiation
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmardefago committed Sep 11, 2023
1 parent 8994828 commit 0a22a03
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 114 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/deploy-goerli-arbitrum-subgraph-no-ipfs.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/deploy-goerli-subgraph-no-ipfs.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/deploy-production-arbitrum-subgraph-no-ipfs.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/deploy-production-subgraph-no-ipfs.yaml

This file was deleted.

35 changes: 1 addition & 34 deletions .github/workflows/template-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 0a22a03

Please sign in to comment.