Skip to content

Commit dc59e2e

Browse files
committed
fix: add build artifacts script
1 parent 574cfdd commit dc59e2e

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
"Registry",
3939
"RSResolver",
4040
"RSSchemaValidator",
41-
"TransparentUpgradeableProxy ",
41+
"TransparentUpgradeableProxy",
4242
]
4343
with:
4444
contract-name: ${{ matrix.contract-name }}

build-artifacts.sh

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
4+
# Check if a contract name is provided
5+
if [ $# -eq 0 ]; then
6+
echo "Please provide a contract name as an argument."
7+
echo "Usage: $0 <ContractName>"
8+
exit 1
9+
fi
10+
11+
CONTRACT_NAME=$1
12+
13+
mkdir -p ./artifacts/$CONTRACT_NAME
14+
forge build $CONTRACT_NAME
15+
cp ./out/$CONTRACT_NAME.sol/* ./artifacts/$CONTRACT_NAME/.
16+
forge verify-contract --show-standard-json-input $(cast address-zero) $CONTRACT_NAME > ./artifacts/$CONTRACT_NAME/verify.json

0 commit comments

Comments
 (0)