Skip to content

Commit

Permalink
extras(release): add LUAROCKS_API_KEY env var
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Oct 25, 2024
1 parent 87f00fc commit ba7184f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion extras/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit ba7184f

Please sign in to comment.