Skip to content

Commit

Permalink
add deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
whonion committed Jun 26, 2023
1 parent cc6d1f4 commit 79e25c7
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 2 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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=59140" >> $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: 59140
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[![Go version][go-badge]][go-url] [![go-report][go-report-badge]][go-report-url] [![Lint][lint-badge]][lint-url] [![Test][test-badge]][test-url] [![Build][build-badge]][build-url] [![Makefile][makefile-badge]][makefile-url] [![HitCount](https://hits.dwyl.com/whonion//SmartContractBatchDeployer.svg)](https://hits.dwyl.com/whonion/SmartContractBatchDeployer)</br>

[![Go version][go-badge]][go-url] [![go-report][go-report-badge]][go-report-url] [![Lint][lint-badge]][lint-url] [![Test][test-badge]][test-url] [![Build][build-badge]][build-url] [![Makefile][makefile-badge]][makefile-url] [![deploy][deploy-badge]][deploy-url] [![HitCount](https://hits.dwyl.com/whonion//SmartContractBatchDeployer.svg)](https://hits.dwyl.com/whonion/SmartContractBatchDeployer)</br>
# Example of batch deployment smart contracts to EVM using Go Lang</br>

Implementation with go-ethereum<br>
Expand Down Expand Up @@ -105,3 +104,6 @@ wget -O install.sh https://github.com/whonion/go-solc-batch-deployer/raw/main/in

[hint-badge]: https://hits.dwyl.com/whonion//go-solc-batch-deployer.svg
[hint-url]: https://hits.dwyl.com/whonion/go-solc-batch-deployer

[deploy-badge]: https://github.com/whonion/go-solc-batch-deployer/actions/workflows/deploy.yml/badge.svg
[deploy-url]: https://github.com/whonion/go-solc-batch-deployer/actions/workflows/deploy.yml

0 comments on commit 79e25c7

Please sign in to comment.