File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,17 @@ for crate in ${ORDER[@]}; do
23
23
cd $crate
24
24
VERSION=$( grep " ^version" ./Cargo.toml | sed -e ' s/.*"\(.*\)"/\1/' )
25
25
echo " Publishing $crate @$VERSION "
26
- sleep 5
26
+ sleep 5 # give the user an opportunity to abort before publishing
27
27
cargo publish $@ || read -p " >>>>> Publishing $crate failed. Press [enter] to continue. "
28
+ echo " Waiting for published version $VERSION to be available..."
29
+ CRATE_NAME=$( grep " ^name" ./Cargo.toml | sed -e ' s/.*"\(.*\)"/\1/' )
30
+ LATEST_VERSION=0
31
+ while [[ $LATEST_VERSION != $VERSION ]]
32
+ do
33
+ sleep 3
34
+ LATEST_VERSION=$( cargo search " $CRATE_NAME " | grep " ^$CRATE_NAME =" | sed -e ' s/.*"\(.*\)".*/\1/' )
35
+ echo " Latest available version: $LATEST_VERSION "
36
+ done
28
37
cd -
29
38
done
30
39
You can’t perform that action at this time.
0 commit comments