71: treasury only deployment - fixing deployment issues #223
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sepolia Testnet | |
on: | |
push: | |
tags: | |
- "*" | |
concurrency: | |
group: "ghcr-image" | |
cancel-in-progress: true | |
env: | |
RPC_URL: ${{ secrets.RPC_URL }} | |
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }} | |
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }} | |
jobs: | |
check: | |
strategy: | |
fail-fast: true | |
name: collective-governance-v1 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Foundry | |
uses: foundry-rs/foundry-toolchain@v1 | |
with: | |
version: nightly | |
- name: Yarn install | |
run: | | |
yarn install --dev | |
yarn prettier:check | |
yarn hint | |
yarn install --production | |
- name: Run Forge tests | |
run: | | |
forge test -v --fail-fast | |
id: test | |
- name: GitHub Release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
draft: false | |
prerelease: false | |
tag_name: ${{ github.ref }} | |
release_name: ${{ github.ref }} | |
body_path: CHANGELOG.md | |
- name: Deploy Constant Library | |
run: | | |
forge create --json --contracts contracts/Constant.sol --rpc-url ${RPC_URL} --private-key ${PRIVATE_KEY} Constant | tee Constant.sol.json | |
- name: Deploy to Treasury Builder | |
run: | | |
export DEPLOYED_LIBRARY=$(bin/library.py Constant.sol.json) | |
echo "Using library ${DEPLOYED_LIBRARY}" | |
ECDSA_LIB_ADDRESS=0xe9e21aaEaEad9c57C1F4c622915fFB54f9Ebe338 forge script ./script/DeployTreasuryBuilder.sol --sig 'deploy()' --libraries ./lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol:ECDSA:${ECDSA_LIB_ADDRESS} --libraries ${DEPLOYED_LIBRARY} --slow --broadcast --rpc-url ${RPC_URL} --private-key ${PRIVATE_KEY} |