From ba7184ff7d77b373ee68c21907b57b2d2f7f5504 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 25 Oct 2024 18:24:38 -0300 Subject: [PATCH] extras(release): add LUAROCKS_API_KEY env var --- extras/release.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/extras/release.sh b/extras/release.sh index e0071aca..d7521946 100755 --- a/extras/release.sh +++ b/extras/release.sh @@ -75,7 +75,12 @@ luarocks new_version tl-dev-*.rockspec "${version}" --tag="v${version}" || { exit 1 } -./luarocks upload tl-${version}-1.rockspec || { +api_key= +[ "$LUAROCKS_API_KEY" ] && { + api_key="--temp-key $LUAROCKS_API_KEY" +} + +./luarocks upload $api_key tl-${version}-1.rockspec || { echo "Failed to upload the new rockspec." exit 1 }