-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.37 KB
/
testnet-deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: bnb-testnet-deployment
on:
workflow_dispatch:
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_TESTNET_PROXY_ADDRESS }}
GNOSIS_ADDRESS: ${{ secrets.GNOSIS_ADDRESS }}
BNB_TESTNET_RPC_URL: ${{ secrets.BNB_TESTNET_RPC_URL }}
BNB_RPC_URL: ${{ secrets.BNB_RPC_URL }}
jobs:
deploy-testnet:
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: 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-deploy-and-verify-contract
id: deploy-and-verify