File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -48,10 +48,14 @@ jobs:
48
48
base64 -di | \
49
49
gpg --batch --import --passphrase "${{ secrets.PASSPHRASE }}"
50
50
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
55
59
56
60
- name : create the gzip
57
61
run : gzip --keep firmware/binaries/index.json
You can’t perform that action at this time.
0 commit comments