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 3
3
# Exit script as soon as a command fails.
4
4
set -o errexit
5
5
6
+ echo " ### Release script started..."
6
7
yarn build
8
+ echo " ### Build finished. Copying abis."
7
9
rm -rf contracts/abi
8
10
mkdir -p contracts/abi
9
11
# 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 \;
12
14
# remove non-abi files
13
15
rm contracts/abi/* .dbg.json
16
+ echo " ### Copying README."
17
+ # copy root README to contracts folder
18
+ cp README.md contracts/README.md
14
19
# publish from contracts folder
15
20
cd contracts
21
+ echo " ### Publishing..."
16
22
np --any-branch --no-tests
23
+ # delete copied README
24
+ rm README.md
17
25
# back to root folder
18
- cd -
26
+ cd -
27
+ echo " ### Done."
You can’t perform that action at this time.
0 commit comments