-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.24 KB
/
etherscan-verify.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
name: etherscan-verify
on:
workflow_dispatch:
inputs:
contractPath:
description: 'Contract Path'
required: true
default: 'contracts/AloeBlend.sol:AloeBlend'
contractAddress:
description: 'Contract Address'
require: true
constructorArgs:
description: 'Contract Constructor Arguments'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Fetch submodules
run: |
git submodule init
git submodule update
- name: Install Nix
run: curl -L https://nixos.org/nix/install | sh
- name: Install dependencies
run: npm install
- name: Install dapptools and verify contract
env:
ETH_RPC_URL: ${{ secrets.ETH_RPC_URL }}
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
run: |
. $HOME/.nix-profile/etc/profile.d/nix.sh
curl https://dapp.tools/install | sh
pwd
cat .dapprc
DAPP_LINK_TEST_LIBRARIES=0 dapp build
dapp verify-contract ${{ github.event.inputs.contractPath }} ${{ github.event.inputs.contractAddress }} ${{ github.event.inputs.constructorArgs }}