Skip to content

Commit 6171a88

Browse files
Paolo CalaoGiuseppe Lumia
Paolo Calao
and
Giuseppe Lumia
authored
Update .github/workflows/sync-binaries-task.yml
Co-authored-by: Giuseppe Lumia <[email protected]>
1 parent ef117a4 commit 6171a88

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/sync-binaries-task.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,14 @@ jobs:
4848
base64 -di | \
4949
gpg --batch --import --passphrase "${{ secrets.PASSPHRASE }}"
5050
51-
# disable gpg pass prompt
52-
# https://stackoverflow.com/questions/49072403/suppress-the-passphrase-prompt-in-gpg-command
53-
- name: sign the json
54-
run: gpg --pinentry-mode=loopback --passphrase "${{ secrets.PASSPHRASE }}" --output firmware/binaries/index.json.sig --detach-sign firmware/binaries/index.json
51+
- name: Sign the index
52+
run: |
53+
export GPG_TTY=$(tty) # fix `gpg: signing failed: Inappropriate ioctl for device`
54+
gpg \
55+
--pinentry-mode=loopback \
56+
--passphrase "${{ secrets.PASSPHRASE }}" \
57+
--detach-sign firmware/binaries/index.json \
58+
> firmware/binaries/index.json.sig
5559
5660
- name: create the gzip
5761
run: gzip --keep firmware/binaries/index.json

0 commit comments

Comments
 (0)