Skip to content

Commit

Permalink
Remove Ropsten-related config from deployment job
Browse files Browse the repository at this point in the history
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
michalinacienciala committed Jul 13, 2022
1 parent 439981e commit 3a9f8c3
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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:
Expand Down

0 comments on commit 3a9f8c3

Please sign in to comment.