-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add remaining deployment github workflows
- Loading branch information
Robert Leonard
authored and
Robert Leonard
committed
Sep 14, 2023
1 parent
d948f75
commit 1288d18
Showing
6 changed files
with
181 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: bnb-main-deployment-upgrade | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
DEFENDER_KEY: ${{ secrets.DEFENDER_KEY }} | ||
DEFENDER_SECRET: ${{ secrets.DEFENDER_SECRET }} | ||
DEFENDER_RELAY_KEY: ${{ secrets.DEFENDER_BNB_RELAY_KEY }} | ||
DEFENDER_RELAY_SECRET: ${{ secrets.DEFENDER_BNB_RELAY_SECRET }} | ||
EXPLORER_API_KEY: ${{ secrets.BNB_EXPLORER_API_KEY }} | ||
DID_REGISTRY_PROXY_ADDRESS: ${{ secrets.DID_REGISTRY_PROXY_ADDRESS }} | ||
GNOSIS_ADDRESS: ${{ secrets.GNOSIS_ADDRESS }} | ||
BNB_TESTNET_RPC_URL: ${{ secrets.BNB_TESTNET_RPC_URL }} | ||
BNB_RPC_URL: ${{ secrets.BNB_RPC_URL }} | ||
|
||
jobs: | ||
check: | ||
strategy: | ||
fail-fast: true | ||
|
||
name: Bnb testnet deployment | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Install Forge Dependencies | ||
run: | | ||
forge install openzeppelin-contracts-upgradeable=OpenZeppelin/openzeppelin-contracts-upgradeable --no-commit | ||
id: install-dependency-contracts | ||
|
||
- name: Run Forge build | ||
run: | | ||
forge --version | ||
forge build --sizes | ||
id: build | ||
|
||
- name: Set Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install hardhat dependencies | ||
run: | | ||
npm install | ||
id: install-hardhat-dependencies | ||
|
||
- name: Run deployment script | ||
run: npm run mainnet-upgrade-and-verify-contract | ||
id: upgrade-and-verify |
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: bnb-main-deployment | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
DEFENDER_KEY: ${{ secrets.DEFENDER_KEY }} | ||
DEFENDER_SECRET: ${{ secrets.DEFENDER_SECRET }} | ||
DEFENDER_RELAY_KEY: ${{ secrets.DEFENDER_BNB_RELAY_KEY }} | ||
DEFENDER_RELAY_SECRET: ${{ secrets.DEFENDER_BNB_RELAY_SECRET }} | ||
EXPLORER_API_KEY: ${{ secrets.BNB_EXPLORER_API_KEY }} | ||
DID_REGISTRY_PROXY_ADDRESS: ${{ secrets.DID_REGISTRY_PROXY_ADDRESS }} | ||
GNOSIS_ADDRESS: ${{ secrets.GNOSIS_ADDRESS }} | ||
BNB_TESTNET_RPC_URL: ${{ secrets.BNB_TESTNET_RPC_URL }} | ||
BNB_RPC_URL: ${{ secrets.BNB_RPC_URL }} | ||
|
||
jobs: | ||
check: | ||
strategy: | ||
fail-fast: true | ||
|
||
name: Bnb testnet deployment | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Install Forge Dependencies | ||
run: | | ||
forge install openzeppelin-contracts-upgradeable=OpenZeppelin/openzeppelin-contracts-upgradeable --no-commit | ||
id: install-dependency-contracts | ||
|
||
- name: Run Forge build | ||
run: | | ||
forge --version | ||
forge build --sizes | ||
id: build | ||
|
||
- name: Set Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install hardhat dependencies | ||
run: | | ||
npm install | ||
id: install-hardhat-dependencies | ||
|
||
- name: Run deployment script | ||
run: npm run mainnet-deploy-and-verify-contract | ||
id: deploy-and-verify |
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: bnb-testnet-upgrade-deployment | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
DEFENDER_KEY: ${{ secrets.DEFENDER_KEY }} | ||
DEFENDER_SECRET: ${{ secrets.DEFENDER_SECRET }} | ||
DEFENDER_RELAY_KEY: ${{ secrets.DEFENDER_BNB_TESTNET_RELAY_KEY }} | ||
DEFENDER_RELAY_SECRET: ${{ secrets.DEFENDER_BNB_TESTNET_RELAY_SECRET }} | ||
EXPLORER_API_KEY: ${{ secrets.BNB_EXPLORER_API_KEY }} | ||
DID_REGISTRY_PROXY_ADDRESS: ${{ secrets.DID_REGISTRY_PROXY_ADDRESS }} | ||
GNOSIS_ADDRESS: ${{ secrets.GNOSIS_ADDRESS }} | ||
BNB_TESTNET_RPC_URL: ${{ secrets.BNB_TESTNET_RPC_URL }} | ||
BNB_RPC_URL: ${{ secrets.BNB_RPC_URL }} | ||
|
||
jobs: | ||
check: | ||
strategy: | ||
fail-fast: true | ||
|
||
name: Bnb testnet deployment | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Install Forge Dependencies | ||
run: | | ||
forge install openzeppelin-contracts-upgradeable=OpenZeppelin/openzeppelin-contracts-upgradeable --no-commit | ||
id: install-dependency-contracts | ||
|
||
- name: Run Forge build | ||
run: | | ||
forge --version | ||
forge build --sizes | ||
id: build | ||
|
||
- name: Set Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install hardhat dependencies | ||
run: | | ||
npm install | ||
id: install-hardhat-dependencies | ||
|
||
- name: Run deployment script | ||
run: npm run testnet-upgrade-and-verify-contract | ||
id: upgrade-and-verify |
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
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 |
---|---|---|
@@ -1,16 +1,12 @@ | ||
DEFENDER_KEY= | ||
DEFENDER_SECRET= | ||
|
||
DEFENDER_BNB_RELAY_KEY= | ||
DEFENDER_BNB_RELAY_SECRET= | ||
|
||
DEFENDER_TESTNET_BNB_RELAY_KEY= | ||
DEFENDER_TESTNET_BNB_RELAY_SECRET= | ||
DEFENDER_RELAY_KEY= | ||
DEFENDER_RELAY_SECRET= | ||
|
||
DID_REGISTRY_PROXY_ADDRESS= | ||
GNOSIS_ADDRESS= | ||
|
||
EXPLORER_API_KEY= | ||
BNB_EXPLORER_API_KEY= | ||
|
||
BNB_TESTNET_RPC_URL= | ||
BNB_RPC_URL= |
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