Skip to content

Commit

Permalink
Update ci/publish.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 26, 2023
1 parent 86f2a6a commit f75c4c1
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions ci/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

set -euo pipefail
IFS=$'\n\t'
cd "$(dirname "$0")"/..

# A list of paths to the crate to be published.
# It will be published in the order listed.
MEMBERS=(
members=(
"futures-core"
"futures-io"
"futures-sink"
Expand All @@ -18,16 +19,10 @@ MEMBERS=(
"futures-test"
)

cd "$(cd "$(dirname "$0")" && pwd)"/..

set -x

for i in "${!MEMBERS[@]}"; do
for member in "${members[@]}"; do
(
cd "${MEMBERS[${i}]}"
set -x
cd "${member}"
cargo +stable publish
)
if [[ $((i + 1)) != "${#MEMBERS[@]}" ]]; then
sleep 45
fi
done

0 comments on commit f75c4c1

Please sign in to comment.