-
Notifications
You must be signed in to change notification settings - Fork 143
62 lines (56 loc) · 1.73 KB
/
verifydeployed.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
53
54
55
56
57
58
59
60
61
62
name: Verify deployed contracts
on:
workflow_dispatch:
inputs:
contracts:
description: 'List of deployed contracts to verify (space delimited)'
required: true
type: string
network:
description: 'Network where the contracts are deployed'
required: true
type: choice
default: mainnet
options:
- mainnet
- arbitrum-one
- goerli
- arbitrum-goerli
jobs:
build:
name: Compile contracts
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up environment
uses: ./.github/actions/setup
- name: Compile contracts
run: yarn build
- name: Save build artifacts
uses: actions/upload-artifact@v3
with:
name: contract-artifacts
path: |
packages/contracts/build
packages/contracts/cache/*.json
verify:
name: Verify deployments
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up environment
uses: ./.github/actions/setup
- name: Get build artifacts
uses: actions/download-artifact@v3
with:
name: contract-artifacts
- name: Verify contracts on Defender
run: cd packages/contracts && yarn hardhat --network ${{ inputs.network }} verify-defender ${{ inputs.contracts }}
env:
DEFENDER_API_KEY: "${{ secrets.DEFENDER_API_KEY }}"
DEFENDER_API_SECRET: "${{ secrets.DEFENDER_API_SECRET }}"
INFURA_KEY: "${{ secrets.INFURA_KEY }}"
WORKFLOW_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"