From 59e59520c1e8665477955a9ab835b4b1d0ad8912 Mon Sep 17 00:00:00 2001 From: Kamlesh Mugdiya Date: Wed, 14 Aug 2024 16:15:36 +0530 Subject: [PATCH] chore(wth-multisig-v4): add base config Tiekct: COIN-1108 --- .github/workflows/deploy_and_release.yml | 15 +++++++++------ .github/workflows/push.yml | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy_and_release.yml b/.github/workflows/deploy_and_release.yml index 1216f07..0896234 100644 --- a/.github/workflows/deploy_and_release.yml +++ b/.github/workflows/deploy_and_release.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Use Node.js + - name: Use Node.js uses: actions/setup-node@v3 with: cache: 'npm' @@ -35,27 +35,28 @@ jobs: ARBISCAN_API_KEY: ${{ secrets.ARBISCAN_API_KEY }} OPTIMISTIC_ETHERSCAN_API_KEY: ${{ secrets.OPTIMISTIC_ETHERSCAN_API_KEY }} ZKSYNC_EXPLORER_API_KEY: ${{ secrets.ZKSYNC_EXPLORER_API_KEY }} + BASESCAN_API_KEY: ${{ secrets.BASESCAN_API_KEY }} get-network: runs-on: ubuntu-latest needs: [lint-and-test] - outputs: + outputs: network: ${{steps.network-name.outputs.result}} steps: - name: GET NETWORK NAME - id: network-name + id: network-name uses: actions/github-script@v6 with: github-token: ${{secrets.GITHUB_TOKEN}} result-encoding: string script: | const tag = process.env.GITHUB_REF_NAME; - const regex = /v.*\-(eth|hteth|matic|tmatic|bsc|tbsc|arbeth|tarbeth|opeth|topeth|zketh|tzketh)$/; + const regex = /v.*\-(eth|hteth|matic|tmatic|bsc|tbsc|arbeth|tarbeth|opeth|topeth|zketh|tzketh|baseeth|tbaseeth)$/; const network = tag.match(regex); return network ? network[1] : "hteth"; deploy-to-test: runs-on: ubuntu-latest needs: [lint-and-test, get-network] - if: ${{ (needs.get-network.outputs.network == 'hteth' ) || (needs.get-network.outputs.network == 'tmatic' ) || (needs.get-network.outputs.network == 'tbsc' ) || (needs.get-network.outputs.network == 'tarbeth' ) || (needs.get-network.outputs.network == 'topeth' ) || (needs.get-network.outputs.network == 'tzketh' ) }} + if: ${{ (needs.get-network.outputs.network == 'hteth' ) || (needs.get-network.outputs.network == 'tmatic' ) || (needs.get-network.outputs.network == 'tbsc' ) || (needs.get-network.outputs.network == 'tarbeth' ) || (needs.get-network.outputs.network == 'topeth' ) || (needs.get-network.outputs.network == 'tzketh' ) || (needs.get-network.outputs.network == 'tbaseeth' )}} environment: testnet steps: - uses: actions/checkout@v2 @@ -83,6 +84,7 @@ jobs: ARBISCAN_API_KEY: ${{ secrets.ARBISCAN_API_KEY }} OPTIMISTIC_ETHERSCAN_API_KEY: ${{ secrets.OPTIMISTIC_ETHERSCAN_API_KEY }} ZKSYNC_EXPLORER_API_KEY: ${{ secrets.ZKSYNC_EXPLORER_API_KEY }} + BASESCAN_API_KEY: ${{ secrets.BASESCAN_API_KEY }} - name: Update release notes uses: actions/github-script@v6 with: @@ -114,7 +116,7 @@ jobs: deploy-to-prod: runs-on: ubuntu-latest needs: [lint-and-test, get-network] - if: ${{ (needs.get-network.outputs.network == 'eth' ) || (needs.get-network.outputs.network == 'matic' ) || (needs.get-network.outputs.network == 'bsc' ) || (needs.get-network.outputs.network == 'arbeth' ) || (needs.get-network.outputs.network == 'opeth' ) || (needs.get-network.outputs.network == 'zketh' ) }} + if: ${{ (needs.get-network.outputs.network == 'eth' ) || (needs.get-network.outputs.network == 'matic' ) || (needs.get-network.outputs.network == 'bsc' ) || (needs.get-network.outputs.network == 'arbeth' ) || (needs.get-network.outputs.network == 'opeth' ) || (needs.get-network.outputs.network == 'zketh' ) || (needs.get-network.outputs.network == 'baseeth' )}} environment: mainnet steps: - uses: actions/checkout@v2 @@ -141,6 +143,7 @@ jobs: ZKSYNC_EXPLORER_API_KEY: ${{ secrets.ZKSYNC_EXPLORER_API_KEY }} QUICKNODE_ARBITRUM_ONE_API_KEY: ${{ secrets.QUICKNODE_ARBITRUM_ONE_API_KEY }} QUICKNODE_OPTIMISM_API_KEY: ${{ secrets.QUICKNODE_OPTIMISM_API_KEY }} + BASESCAN_API_KEY: ${{ secrets.BASESCAN_API_KEY }} - name: Update release notes uses: actions/github-script@v6 with: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 53480fb..fb25cd5 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -43,4 +43,5 @@ jobs: ARBISCAN_API_KEY: ${{ secrets.ARBISCAN_API_KEY }} OPTIMISTIC_ETHERSCAN_API_KEY: ${{ secrets.OPTIMISTIC_ETHERSCAN_API_KEY }} ZKSYNC_EXPLORER_API_KEY: ${{ secrets.ZKSYNC_EXPLORER_API_KEY }} + BASESCAN_API_KEY: ${{ secrets.BASESCAN_API_KEY }} - run: npm run lint