-
Notifications
You must be signed in to change notification settings - Fork 267
65 lines (53 loc) · 2.13 KB
/
deploy.yml
File metadata and controls
65 lines (53 loc) · 2.13 KB
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
63
64
65
name: deploy
on:
workflow_dispatch:
inputs:
network:
description: 'Network name for deployment'
required: true
block_explorer_api_key:
description: 'Block explorer API key (use default value for Blockscout)'
required: true
default: 'no'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Compile contracts
run: npm run compile
- name: Deploy Router
run: npm run deploy:router -- --network ${{ github.event.inputs.network || 'truffle-dashboard' }}
env:
WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }}
- name: Deploy SimpleCaller
run: npm run deploy:sc -- --network ${{ github.event.inputs.network || 'truffle-dashboard' }}
env:
WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }}
- name: Deploy UniswapV2Caller
run: npm run deploy:univ2caller -- --network ${{ github.event.inputs.network || 'truffle-dashboard' }}
env:
WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }}
- name: Deploy Safe Proxy
run: npm run deploy:safe -- --network ${{ github.event.inputs.network || 'truffle-dashboard' }}
env:
WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }}
- name: Deploy SimpleCallerWithPermit2
run: npm run deploy:scwp2 -- --network ${{ github.event.inputs.network || 'truffle-dashboard' }}
env:
WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }}
- name: Initialize Router
run: npm run initialize:router -- --network ${{ github.event.inputs.network || 'truffle-dashboard' }}
env:
WALLET_PRIVATE_KEY: ${{ secrets.WALLET_PRIVATE_KEY }}
- name: Verify Contracts
run: npm run verify -- --network ${{ github.event.inputs.network || 'truffle-dashboard' }}
env:
BLOCK_EXPLORER_API_KEY: ${{ github.event.inputs.block_explorer_api_key }}