[docs] Crafting a new release (#8433)

* [docs] Crafting a new release
This commit is contained in:
Daniel Vaz Gaspar
2019-10-28 10:17:10 +00:00
committed by GitHub
parent eaeed0c93a
commit c1810aab15
2 changed files with 41 additions and 6 deletions

View File

@@ -22,7 +22,20 @@
# you will still be required to type in your signing key password
# or it needs to be available in your keychain
NAME=${1}
gpg --armor --output ${NAME}.asc --detach-sig ${NAME}
gpg --print-md SHA512 ${NAME} > ${NAME}.sha512
# The name of the file/artifact to sign ${RELEASE}-source.tar.gz
if [ -z "${1}" ]; then
echo "Missing first parameter, usage: sign <FILE_NAME> <GPG KEY>"
exit 1
fi
NAME="${1}"
if [ -z "${2}" ]; then
gpg --armor --output "${NAME}".asc --detach-sig "${NAME}"
gpg --print-md SHA512 "${NAME}" > "${NAME}".sha512
else
# The GPG key name to use
GPG_LOCAL_USER="${2}"
gpg --local-user "${GPG_LOCAL_USER}" --armor --output "${NAME}".asc --detach-sig "${NAME}"
gpg --local-user "${GPG_LOCAL_USER}" --print-md SHA512 "${NAME}" > "${NAME}".sha512
fi