From 711f8d73ad579392795ab2abf7b0710eca4c0f1a Mon Sep 17 00:00:00 2001 From: swen Date: Wed, 28 Aug 2024 15:09:05 +0100 Subject: [PATCH] wip --- scripts/release-all-rust-crates.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/release-all-rust-crates.sh b/scripts/release-all-rust-crates.sh index 04c58b2fb4..7bf7d54283 100755 --- a/scripts/release-all-rust-crates.sh +++ b/scripts/release-all-rust-crates.sh @@ -12,8 +12,8 @@ echo "Tagging and releasing all Rust projects..." echo "Logging in to crates.io..." cargo login "${CRATES_IO_TOKEN}" # TODO: allow dynamic releases, and add gh release workflow -# PACKAGES=("aligned-sized" "light-heap" "light-bounded-vec" "light-utils" "light-hasher" "light-macros" "light-hash-set" "light-merkle-tree-reference" "light-concurrent-merkle-tree" "light-indexed-merkle-tree" "light-prover-client" "light-verifier" "account-compression" "light-registry" "light-system-program" "light-compressed-token" "light-test-utils" "light-sdk") -PACKAGES=("photon-api" "light-test-utils" "light-sdk") +PACKAGES=("aligned-sized" "light-heap" "light-bounded-vec" "light-utils" "light-hasher" "light-macros" "light-hash-set" "light-merkle-tree-reference" "light-concurrent-merkle-tree" "light-indexed-merkle-tree" "light-prover-client" "light-verifier" "account-compression" "light-registry" "light-system-program" "light-compressed-token" "photon-api""light-test-utils" "light-sdk") +# PACKAGES=("photon-api" "light-test-utils" "light-sdk") for PACKAGE in "${PACKAGES[@]}"; do PKG_VERSION=$(cargo pkgid -p "$PACKAGE" | cut -d "#" -f2) VERSION=${PKG_VERSION#*@} @@ -23,6 +23,6 @@ for PACKAGE in "${PACKAGES[@]}"; do for attempt in {1..3}; do echo "Attempt $attempt: Publishing $PACKAGE..." cargo release publish --package "$PACKAGE" --execute --no-confirm && break || echo "Attempt $attempt failed, retrying in 20..." - sleep 20 + sleep 15 done done \ No newline at end of file