Skip to content

Commit d6e7046

Browse files
committed
Add publish script
1 parent ab38fd2 commit d6e7046

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

ci/publish.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
IFS=$'\n\t'
5+
6+
# A list of paths to the crate to be published.
7+
# It will be published in the order listed.
8+
MEMBERS=(
9+
"futures-core"
10+
"futures-io"
11+
"futures-sink"
12+
"futures-task"
13+
"futures-channel"
14+
"futures-macro"
15+
"futures-util"
16+
"futures-executor"
17+
"futures"
18+
"futures-test"
19+
)
20+
21+
cd "$(cd "$(dirname "$0")" && pwd)"/..
22+
23+
set -x
24+
25+
for i in "${!MEMBERS[@]}"; do
26+
(
27+
cd "${MEMBERS[${i}]}"
28+
cargo publish
29+
)
30+
if [[ $((i + 1)) != "${#MEMBERS[@]}" ]]; then
31+
sleep 45
32+
fi
33+
done

0 commit comments

Comments
 (0)