Skip to content

Commit

Permalink
Add publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jul 23, 2021
1 parent 49ad690 commit 47b876f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions ci/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

set -euo pipefail
IFS=$'\n\t'

# A list of paths to the crate to be published.
# It will be published in the order listed.
MEMBERS=(
"."
"futures01"
)

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

set -x

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

0 comments on commit 47b876f

Please sign in to comment.