Skip to content

Commit 47b876f

Browse files
committed
Add publish script
1 parent 49ad690 commit 47b876f

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

ci/publish.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
"."
10+
"futures01"
11+
)
12+
13+
cd "$(cd "$(dirname "$0")" && pwd)"/..
14+
15+
set -x
16+
17+
for i in "${!MEMBERS[@]}"; do
18+
(
19+
cd "${MEMBERS[${i}]}"
20+
cargo publish
21+
)
22+
if [[ $((i + 1)) != "${#MEMBERS[@]}" ]]; then
23+
sleep 45
24+
fi
25+
done

0 commit comments

Comments
 (0)