diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ea07ad..a1f499f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,6 +31,15 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.21 + - name: Configure gpg to work without a TTY + run: | + mkdir -p ~/.gnupg + echo "use-agent" >> ~/.gnupg/gpg.conf + echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf + echo "no-tty" >> ~/.gnupg/gpg.conf + echo "batch" >> ~/.gnupg/gpg.conf + echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf + echo RELOADAGENT | gpg-connect-agent - name: Import GPG key id: import_gpg uses: crazy-max/ghaction-import-gpg@v6.1.0