-
Notifications
You must be signed in to change notification settings - Fork 261
53 lines (44 loc) · 1.88 KB
/
call.deploy-dry-run.yml
File metadata and controls
53 lines (44 loc) · 1.88 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
name: Reusable Workflow | Deploy Framework and Update Tokens on a Forked Network
on:
workflow_call:
inputs:
network:
required: true
type: string
provider-url:
required: true
type: string
jobs:
deploy-to-forked-network:
name: Deploy Framework and Update Tokens on a Forked Network
runs-on: ubuntu-22.04
env:
ethereum-contracts-working-directory: ./packages/ethereum-contracts
steps:
- uses: actions/checkout@v4
- name: Install and Build
run: |
yarn install --frozen-lockfile
yarn build-for-contracts-dev
- name: Start hardhat node
run: |
cd ${{ env.ethereum-contracts-working-directory }}
npx hardhat node --port 47545 --fork ${{ github.event.inputs.provider-url }} &
sleep 5
- name: Deploy framework
run: |
echo "${{ github.event.inputs.environments }}" | sed 's/;/\n/' > .env
npx truffle exec --network ${{ github.event.inputs.network }} ops-scripts/deploy-test-environment.js
working-directory: ${{ env.ethereum-contracts-working-directory }}
- name: Validate deployment before token upgrade
run: |
npx hardhat run ops-scripts/validate-deployment.ts --network ${{ github.event.inputs.network }}
working-directory: ${{ env.ethereum-contracts-working-directory }}
- name: Update Super Token Logic for all tokens
run: |
npx truffle exec --network ${{ github.event.inputs.network }} ops-scripts/gov-upgrade-super-token-logic.js : ALL
working-directory: ${{ env.ethereum-contracts-working-directory }}
- name: Validate deployment post token upgrade
run: |
npx hardhat run ops-scripts/validate-deployment.ts --network ${{ github.event.inputs.network }}
working-directory: ${{ env.ethereum-contracts-working-directory }}