-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Ropsten-related config from deployment job
As the Ropsten testnet becomes deprecated in the near future, we are switching to deployment on Goerli. If deployment on Ropsten will be needed in the interm period, we will do it manually, not via GH Actions.
- Loading branch information
1 parent
439981e
commit 3a9f8c3
Showing
1 changed file
with
4 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,7 +99,7 @@ jobs: | |
|
||
contracts-deployment-testnet: | ||
needs: [contracts-build-and-test] | ||
if: github.event_name == 'workflow_dispatch' | ||
if: github.event_name == 'workflow_dispatch' && github.event.inputs.environment == 'goerli' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -113,32 +113,15 @@ jobs: | |
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
# Ultimately, we want to get rid of steps deploying on Ropsten (as it will | ||
# be shut down in Q4 2022) and switch to deployment on Goerli. We're | ||
# leaving both deployment options for the transition period. | ||
- name: Resolve latest contracts on Ropsten | ||
if: github.event.inputs.environment == 'ropsten' | ||
run: yarn upgrade @keep-network/[email protected] | ||
|
||
- name: Resolve latest contracts on Goerli | ||
if: github.event.inputs.environment == 'goerli' | ||
- name: Resolve latest contracts | ||
run: yarn upgrade @keep-network/[email protected] | ||
|
||
- name: Configure tenderly | ||
env: | ||
TENDERLY_TOKEN: ${{ secrets.TENDERLY_TOKEN }} | ||
run: ./config_tenderly.sh | ||
|
||
- name: Deploy contracts on Ropsten | ||
if: github.event.inputs.environment == 'ropsten' | ||
env: | ||
CHAIN_API_URL: ${{ secrets.ROPSTEN_ETH_HOSTNAME_HTTP }} | ||
CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.ROPSTEN_ETH_CONTRACT_OWNER_PRIVATE_KEY }} | ||
KEEP_CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.ROPSTEN_KEEP_ETH_CONTRACT_OWNER_PRIVATE_KEY }} | ||
run: yarn deploy --network ${{ github.event.inputs.environment }} | ||
|
||
- name: Deploy contracts on Goerli | ||
if: github.event.inputs.environment == 'goerli' | ||
- name: Deploy contracts | ||
env: | ||
CHAIN_API_URL: ${{ secrets.GOERLI_ETH_HOSTNAME_HTTP }} | ||
CONTRACT_OWNER_ACCOUNT_PRIVATE_KEY: ${{ secrets.GOERLI_ETH_CONTRACT_OWNER_PRIVATE_KEY }} | ||
|
@@ -163,6 +146,7 @@ jobs: | |
- name: Notify CI about completion of the workflow | ||
# uses: keep-network/ci/actions/notify-workflow-completed@v1 | ||
uses: keep-network/ci/actions/notify-workflow-completed@ci-goerli | ||
continue-on-error: true # TODO: remove before merge to main | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} | ||
with: | ||
|