Skip to content

Commit

Permalink
Alter gpg config to work without a TTY
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrudz committed Jan 24, 2024
1 parent 98d3c25 commit f0792ef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down

0 comments on commit f0792ef

Please sign in to comment.