Just don't sign releases if there's no secret key provided.

This commit is contained in:
Jordan Bancino 2022-07-28 20:50:09 -04:00
parent 8f6b767083
commit bbca61bfad

18
make.sh
View file

@ -110,12 +110,6 @@ recipe_release() {
exit 1
fi
if [ -z "$TELODENDRIA_SIGNIFY_SECRET" ]; then
echo "No signify secret key specified."
echo "Set TELODENDRIA_SIGNIFY_SECRET."
exit 1
fi
mkdir -p "$TELODENDRIA_PUB/pub/v$TELODENDRIA_VERSION"
cd "$TELODENDRIA_PUB/pub/v$TELODENDRIA_VERSION"
@ -126,9 +120,15 @@ recipe_release() {
rm -r "Telodendria-v$TELODENDRIA_VERSION"
sha256 "Telodendria-v$TELODENDRIA_VERSION.tar.gz" \
> "Telodendria-v$TELODENDRIA_VERSION.tar.gz.sha256"
signify -S -s "$TELODENDRIA_SIGNIFY_SECRET" \
-m "Telodendria-v$TELODENDRIA_VERSION.tar.gz" \
-x "Telodendria-v$TELODENDRIA_VERSION.tar.gz.sig"
if [ ! -z "$TELODENDRIA_SIGNIFY_SECRET" ]; then
signify -S -s "$TELODENDRIA_SIGNIFY_SECRET" \
-m "Telodendria-v$TELODENDRIA_VERSION.tar.gz" \
-x "Telodendria-v$TELODENDRIA_VERSION.tar.gz.sig"
else
echo "Warning: TELODENDRIA_SIGNIFY_SECRET not net."
echo "The built tarball will not be signed."
fi
}
for recipe in $@; do