File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 43
43
- name : Generate binaries and index
44
44
run : python ./firmware/generator.py -a $(which arduino-cli)
45
45
46
+ # fix `gpg: signing failed: Inappropriate ioctl for device`
47
+ # https://github.com/keybase/keybase-issues/issues/2798
48
+ - name : Import GPG key
49
+ run : |
50
+ echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 -di > /tmp/private.key
51
+ gpg --batch --import --passphrase "${{ secrets.PASSPHRASE }}" /tmp/private.key
52
+ echo "GPG_TTY=$(tty)" >> $GITHUB_ENV
53
+
54
+ # disable gpg pass prompt
55
+ # https://stackoverflow.com/questions/49072403/suppress-the-passphrase-prompt-in-gpg-command
56
+ - name : sign the json
57
+ run : gpg --pinentry-mode=loopback --passphrase "${{ secrets.PASSPHRASE }}" --output firmware/binaries/index.json.sig --detach-sign firmware/binaries/index.json
58
+
59
+ - name : create the gzip
60
+ run : gzip --keep firmware/binaries/index.json
61
+
46
62
- name : s3 sync
47
63
run : |
48
64
aws s3 sync ./firmware/binaries s3://cloud-downloads.oniudra.cc/binaries
You can’t perform that action at this time.
0 commit comments