Skip to content

Commit d59ec45

Browse files
Wait for diffus-derive being updated on crates
1 parent 55a95fc commit d59ec45

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

publish.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ set -o errexit -o nounset -o pipefail -o xtrace
44

55
VERSION="$1"
66

7+
command -v jq > /dev/null
8+
79
cargo_publish () {
810
(
911
cd $1
@@ -55,6 +57,7 @@ cargo_publish () {
5557
git push origin "${VERSION}"
5658
git push origin master
5759
cargo_publish diffus-derive
60+
./wait_for_crate.sh diffus-derive "${VERSION}"
5861
cargo_publish diffus
5962
;;
6063
*)

wait_for_crate.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
set -o errexit -o nounset -o pipefail
3+
4+
CRATE="$1"
5+
VERSION="$2"
6+
7+
until curl --silent --fail "https://crates.io/api/v1/crates/${CRATE}" | jq ".versions[].num" | grep '^"'${VERSION}'"$' > /dev/null; do
8+
printf '.'
9+
sleep 1
10+
done

0 commit comments

Comments
 (0)