Skip to content

Commit 5c9f3d2

Browse files
Add plugin firmware index generation steps to the workflow
1 parent 8fc2659 commit 5c9f3d2

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/generate-index.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ jobs:
5656
cd $GITHUB_WORKSPACE
5757
task poetry:install-deps
5858
59-
- name: Generate index
59+
- name: Generate plugin firmware index
6060
run: poetry run ./generator.py -a $(which arduino-cli)
6161

62+
- name: Generate module firmware index
63+
run: poetry run ./generator.py -a $(which arduino-cli) --no-new
64+
6265
# fix `gpg: signing failed: Inappropriate ioctl for device`
6366
# https://github.com/keybase/keybase-issues/issues/2798
6467
- name: Import GPG key
@@ -69,16 +72,24 @@ jobs:
6972
7073
# disable gpg pass prompt
7174
# https://stackoverflow.com/questions/49072403/suppress-the-passphrase-prompt-in-gpg-command
72-
- name: sign the json
75+
- name: sign the module firmware index json
7376
run: |
7477
gpg \
7578
--pinentry-mode=loopback \
7679
--passphrase "${{ secrets.PASSPHRASE }}" \
7780
--output boards/module_firmware_index.json.sig \
7881
--detach-sign boards/module_firmware_index.json
7982
83+
- name: sign the plugin firmware index json
84+
run: |
85+
gpg \
86+
--pinentry-mode=loopback \
87+
--passphrase "${{ secrets.PASSPHRASE }}" \
88+
--output boards/plugin_firmware_index.json.sig \
89+
--detach-sign boards/plugin_firmware_index.json
90+
8091
- name: create the gzip
81-
run: gzip --keep boards/module_firmware_index.json
92+
run: gzip --keep boards/module_firmware_index.json boards/plugin_firmware_index.json
8293

8394
- name: s3 sync
8495
run: |

0 commit comments

Comments
 (0)