Skip to content

Commit

Permalink
check if a crate version was already published (#1078)
Browse files Browse the repository at this point in the history
(to allow re-running the script if some crate versions weren't published for some reason)
  • Loading branch information
tomtau authored Feb 2, 2025
1 parent eca1f1c commit a13c05c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ wait_until_available() {

for crate in ${CRATES}; do
VERSION="$(get_local_version "${crate}")"
publish "${crate}"
wait_until_available "${crate}" "${VERSION}"
ONLINE_DATE="$(check_version_online "${crate}" "${VERSION}")"
if [ -n "${ONLINE_DATE}" ]; then
echo "Crate ${crate} is already published"
else
publish "${crate}"
wait_until_available "${crate}" "${VERSION}"
fi
done

0 comments on commit a13c05c

Please sign in to comment.