bevy/tools/publish.sh
François Mockers 0d90da896b
don't wait during publishing (#18563)
# Objective

- Publishing takes a long time
- There's a 20 second wait between crates to not hit the rate limit on
crates.io

## Solution

- Our rate limit has been increased by the crates.io team, don't wait
anymore!
2025-03-26 21:27:29 +00:00

20 lines
349 B
Bash

if [ -n "$(git status --porcelain)" ]; then
echo "You have local changes!"
exit 1
fi
pushd crates
for crate in `cargo package --workspace 2>&1 | grep Packaging | sed 's_.*crates/\(.*\))_\1_' | grep -v Packaging`
do
echo "Publishing ${crate}"
pushd "$crate"
cargo publish
popd
done
popd
echo "Publishing root crate"
cargo publish