diff --git a/sign.sh b/sign.sh index 0e2141a3..22251b84 100755 --- a/sign.sh +++ b/sign.sh @@ -3,8 +3,7 @@ set -e gpg-agent --daemon --default-cache-ttl 7200 # Multiline key in an envvar gets mangled. -FIXED_KEY=$(echo "$GPG_PRIVATE_KEY" | cat -e | sed 's/\$/\\n/g') -echo -e $FIXED_KEY | gpg --import --batch --no-tty +echo "$GPG_PRIVATE_KEY_BASE64" | base64 -d | gpg --import --batch --no-tty echo "hello world" > temp.txt gpg --detach-sig --yes -v --output=/dev/null --pinentry-mode loopback --passphrase "${PASSPHRASE}" temp.txt cd assets ; gpg --detach-sign ${PROJECT}-${VERSION}_SHA256SUMS