From e3d4f9910c3732f7df85711e8f40dd881754caa1 Mon Sep 17 00:00:00 2001 From: David Drysdale Date: Wed, 23 Dec 2020 08:35:49 +0000 Subject: [PATCH] scripts: crate release helper --- scripts/release.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 scripts/release.sh diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100755 index 000000000..65f773838 --- /dev/null +++ b/scripts/release.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -e + +# Crates to be published. Order is significant; later crates can only rely on earlier crates +CRATE_DIRS=(proto tink prf mac aead daead streaming signature integration/awskms rinkey) + +# Release crates in dependency order. Assumes `cargo login` has been done. +for dir in "${CRATE_DIRS[@]}"; do + cargo release --manifest-path "$dir/Cargo.toml" +done