feat: set verbosity flag and supply release GPG key passphrase

This commit is contained in:
Aravinth Manivannan 2022-08-15 16:31:28 +05:30
parent d4b10bed24
commit 803ce44707
Signed by: realaravinth
GPG key ID: AD9F0F08E855ED88
2 changed files with 9 additions and 3 deletions

View file

@ -130,6 +130,7 @@ jobs:
env:
DUMBSERVE_USERNAME: ${{ secrets.DUMBSERVE_USERNAME }}
DUMBSERVE_PASSWORD: ${{ secrets.DUMBSERVE_PASSWORD }}
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
- name: generate documentation
if: matrix.version == 'stable' && (github.repository == 'realaravinth/dumbserve')

View file

@ -76,9 +76,14 @@ sign() {
echo "[*] Signing dist tarball checksum"
pushd $TMP_DIR
export GPG_TTY=$(tty)
find $(pwd)
find $TMP_DIR
gpg --local-user $KEY --output $TARBALL.asc --sign --detach --armor $TARBALL
gpg --verbose \
--pinentry-mode loopback \
--batch --yes \
--passphrase $GPG_PASSWORD \
--local-user $KEY \
--output $TARBALL.asc \
--sign --detach \
--armor $TARBALL
popd
}