From 47b876fb67cf91833d04ed07720b82fc599fac93 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 24 Jul 2021 04:20:08 +0900 Subject: [PATCH] Add publish script --- ci/publish.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 ci/publish.sh diff --git a/ci/publish.sh b/ci/publish.sh new file mode 100755 index 0000000000..4d6eae069f --- /dev/null +++ b/ci/publish.sh @@ -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