We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55a95fc commit d59ec45Copy full SHA for d59ec45
publish.sh
@@ -4,6 +4,8 @@ set -o errexit -o nounset -o pipefail -o xtrace
4
5
VERSION="$1"
6
7
+command -v jq > /dev/null
8
+
9
cargo_publish () {
10
(
11
cd $1
@@ -55,6 +57,7 @@ cargo_publish () {
55
57
git push origin "${VERSION}"
56
58
git push origin master
59
cargo_publish diffus-derive
60
+ ./wait_for_crate.sh diffus-derive "${VERSION}"
61
cargo_publish diffus
62
;;
63
*)
wait_for_crate.sh
@@ -0,0 +1,10 @@
1
+#!/usr/bin/env bash
2
+set -o errexit -o nounset -o pipefail
3
+CRATE="$1"
+VERSION="$2"
+until curl --silent --fail "https://crates.io/api/v1/crates/${CRATE}" | jq ".versions[].num" | grep '^"'${VERSION}'"$' > /dev/null; do
+ printf '.'
+ sleep 1
+done
0 commit comments