File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 33# Exit script as soon as a command fails.
44set -o errexit
55
6+ echo " ### Release script started..."
67yarn build
8+ echo " ### Build finished. Copying abis."
79rm -rf contracts/abi
810mkdir -p contracts/abi
911# copy all abis to contracts/abi
10- find artifacts/contracts ! -iregex " .*([a-zA-Z0-9_]).json" -exec cp {} contracts/abi \;
11- find artifacts/@openzeppelin ! -iregex " .*([a-zA-Z0-9_]).json" -exec cp {} contracts/abi \;
12+ find artifacts/contracts ! -iregex " .*([a-zA-Z0-9_]).json" -exec cp {} contracts/abi 2> /dev/null \;
13+ find artifacts/@openzeppelin ! -iregex " .*([a-zA-Z0-9_]).json" -exec cp {} contracts/abi 2> /dev/null \;
1214# remove non-abi files
1315rm contracts/abi/* .dbg.json
16+ echo " ### Copying README."
17+ # copy root README to contracts folder
18+ cp README.md contracts/README.md
1419# publish from contracts folder
1520cd contracts
21+ echo " ### Publishing..."
1622np --any-branch --no-tests
23+ # delete copied README
24+ rm README.md
1725# back to root folder
18- cd -
26+ cd -
27+ echo " ### Done."
You can’t perform that action at this time.
0 commit comments