Skip to content

Commit

Permalink
Fix publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanfrey committed Jul 14, 2021
1 parent 9ea8f5a commit 27a46e5
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
set -o errexit -o nounset -o pipefail
command -v shellcheck > /dev/null && shellcheck "$0"

# this should really more to cosmwasm...
STORAGE_PACKAGES="storage-plus"
# these are imported by other packages
BASE_PACKAGES="cw0 storage-plus"
BASE_PACKAGES="cw0"
ALL_PACKAGES="controllers cw1 cw2 cw3 cw4 cw20 cw721 cw1155 multi-test"

# these are imported by other contracts
Expand All @@ -12,6 +14,18 @@ ALL_CONTRACTS="cw1-subkeys cw3-fixed-multisig cw3-flex-multisig cw4-stake cw20-a

SLEEP_TIME=30

for pack in $STORAGE_PACKAGES; do
(
cd "packages/$pack"
echo "Publishing $pack"
cargo publish
)
done

# wait for these to be processed on crates.io
echo "Waiting for publishing storage packages"
sleep $SLEEP_TIME

for pack in $BASE_PACKAGES; do
(
cd "packages/$pack"
Expand Down

0 comments on commit 27a46e5

Please sign in to comment.