-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (39 loc) · 1.18 KB
/
deploy.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: Test Deploy
on:
push:
branches:
- main
jobs:
test:
name: Test Deployment
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.20'
- name: Install Go dependencies
run: go get .
- name: Setup Solidity Compiler v0.8.20
run: |
wget https://github.com/ethereum/solidity/releases/download/v0.8.20/solc-static-linux
chmod +x solc-static-linux
sudo mv solc-static-linux /usr/local/bin/solc
- name: Remove panic contracts
run: |
rm contracts/USDC.sol
rm contracts/WETH.sol
- name: Setup environment variables
run: |
echo "PRIVATE_KEY=${{ secrets.PRIVATE_KEY }}" >> $GITHUB_ENV
echo "RPC_PROVIDER=${{ secrets.RPC_PROVIDER }}" >> $GITHUB_ENV
echo "CHAIN_ID=5" >> $GITHUB_ENV
- name: Run script and Deployment contracts
run: |
go run main.go
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
RPC_PROVIDER: ${{ secrets.RPC_PROVIDER }}
CHAIN_ID: 5