@@ -79,31 +79,21 @@ jobs:
7979 - name : Install dependencies
8080 run : yarn install --frozen-lockfile
8181
82- - name : Get upstream packages' versions
83- uses : keep-network/ci/actions/upstream-builds-query@v1
84- id : upstream-builds-query
85- with :
86- upstream-builds : ${{ github.event.inputs.upstream_builds }}
87- query : |
88- keep-core-contracts-version = github.com/keep-network/keep-core/solidity-v1#version
89- tbtc-contracts-version = github.com/keep-network/tbtc/solidity#version
90-
9182 - name : Resolve latest contracts
9283 run : |
9384 yarn upgrade \
94- @keep-network/keep-core@${{ steps.upstream-builds-query.outputs.keep-core-contracts-version }} \
95- @keep-network/tbtc@${{ steps.upstream-builds-query.outputs.tbtc-contracts-version }}
85+ @keep-network/keep-core@${{ github.event.inputs.environment }} \
86+ @keep-network/tbtc@${{ github.event.inputs.environment }}
9687
9788 - name : Configure tenderly
98- if : github.event.inputs.environment == 'ropsten'
9989 env :
10090 TENDERLY_TOKEN : ${{ secrets.TENDERLY_TOKEN }}
10191 run : ./config_tenderly.sh
10292
10393 - name : Deploy contracts
10494 env :
105- CHAIN_API_URL : ${{ secrets.KEEP_TEST_ETH_HOSTNAME_HTTP }}
106- ACCOUNTS_PRIVATE_KEYS : ${{ secrets.KEEP_TEST_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
95+ CHAIN_API_URL : ${{ secrets.GOERLI_ETH_HOSTNAME_HTTP }}
96+ ACCOUNTS_PRIVATE_KEYS : ${{ secrets.GOERLI_ETH_CONTRACT_OWNER_PRIVATE_KEY }}
10797 run : yarn deploy --network ${{ github.event.inputs.environment }}
10898
10999 - name : Bump up package version
@@ -115,21 +105,28 @@ jobs:
115105 commit : ${{ github.sha }}
116106
117107 - name : Publish to npm
108+ # TODO: remove `--dry-run` before merge to main
118109 env :
119110 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
120- run : npm publish --access=public --network=${{ github.event.inputs.environment }} --tag ${{ github.event.inputs.environment }}
121-
122- - name : Notify CI about completion of the workflow
123- uses : keep-network/ci/actions/notify-workflow-completed@v1
124- env :
125- GITHUB_TOKEN : ${{ secrets.CI_GITHUB_TOKEN }}
126- with :
127- module : " github.com/keep-network/coverage-pools"
128- url : https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
129- environment : ${{ github.event.inputs.environment }}
130- upstream_builds : ${{ github.event.inputs.upstream_builds }}
131- upstream_ref : ${{ github.event.inputs.upstream_ref }}
132- version : ${{ steps.npm-version-bump.outputs.version }}
111+ run : npm publish --access=public --network=${{ github.event.inputs.environment }} --tag ${{ github.event.inputs.environment }} --dry-run
112+
113+ # We're systematically moving to the v2 of the system, where different
114+ # order of execution of modules is needed than in v1. `coverage-pools` are
115+ # not yet ready to be included in the new (v2) CI flow. And the old (v1)
116+ # deployment flow is now deprecated. Once coverage-pools get adjusted for
117+ # the use in T dashboard, we'll need to uncomment this step and modify it
118+ # for v2.
119+ # - name: Notify CI about completion of the workflow
120+ # uses: keep-network/ci/actions/notify-workflow-completed@v1
121+ # env:
122+ # GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
123+ # with:
124+ # module: "github.com/keep-network/coverage-pools"
125+ # url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
126+ # environment: ${{ github.event.inputs.environment }}
127+ # upstream_builds: ${{ github.event.inputs.upstream_builds }}
128+ # upstream_ref: ${{ github.event.inputs.upstream_ref }}
129+ # version: ${{ steps.npm-version-bump.outputs.version }}
133130
134131 - name : Upload files needed for etherscan verification
135132 uses : actions/upload-artifact@v2
@@ -170,7 +167,7 @@ jobs:
170167 - name : Verify contracts on Etherscan
171168 env :
172169 ETHERSCAN_API_KEY : ${{ secrets.ETHERSCAN_API_KEY }}
173- CHAIN_API_URL : ${{ secrets.KEEP_TEST_ETH_HOSTNAME_HTTP }}
170+ CHAIN_API_URL : ${{ secrets.GOERLI_ETH_HOSTNAME_HTTP }}
174171 run : yarn run hardhat --network ${{ github.event.inputs.environment }} etherscan-verify --license MIT
175172
176173 contracts-lint :
0 commit comments