feat: sign released binaries
Some checks reported warnings
Cadoles/go-http-peering/pipeline/head This commit is unstable

This commit is contained in:
2023-10-19 15:08:48 +02:00
parent 891cfa7540
commit cf8f026574
5 changed files with 40 additions and 17 deletions

View File

@ -37,6 +37,10 @@ function build {
upx --best "$destdir/$name"
fi
if [ ! -z "${GPG_SIGNING_KEY}" ]; then
echo "signing '$destdir/$name' with gpg key '$GPG_SIGNING_KEY'..."
gpg --sign --default-key "${GPG_SIGNING_KEY}" --output "$destdir/$name.sig" "$destdir/$name"
fi
}
function copy {