Skip to content

Commit

Permalink
fix: update publish workflow (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M authored Sep 27, 2024
1 parent bdcf3cc commit 663ac02
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 66 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,21 @@ jobs:
name: ${{ inputs.download_app_binaries_artifact }}
path: ${{ needs.call_get_app_metadata.outputs.build_directory }}

- name: Rename and move files
- name: Create release archives
run: |
mv ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanos/release/iota iota-nanos
mv ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanos/release/app.hex iota-nanos-app.hex
mv ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanosplus/release/iota iota-nanosplus
mv ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanosplus/release/app.hex iota-nanosplus-app.hex
mv ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanox/release/iota iota-nanox
mv ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanox/release/app.hex iota-nanox-app.hex
mv ./.github/workflows/release/*.json ./
tar cfzv nanos.tar.gz iota-nanos iota-nanos-app.hex app_nanos.json
tar cfzv nanosplus.tar.gz iota-nanosplus iota-nanosplus-app.hex app_nanosplus.json
tar cfzv nanox.tar.gz iota-nanox iota-nanox-app.hex app_nanox.json
mkdir nanos nanosplus nanox
cp ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanos/release/iota nanos/
cp ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanos/release/iota.hex nanos/
cp ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanos/release/app_nanos.json nanos/
cp ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanosplus/release/iota nanosplus/
cp ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanosplus/release/iota.hex nanosplus/
cp ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanosplus/release/app_nanosplus.json nanosplus/
cp ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanox/release/iota nanox/
cp ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanox/release/iota.hex nanox/
cp ${{ needs.call_get_app_metadata.outputs.build_directory }}/compiled_app_binaries/nanox/release/app_nanox.json nanox/
tar cfzv nanos.tar.gz nanos
tar cfzv nanosplus.tar.gz nanosplus
tar cfzv nanox.tar.gz nanox
- name: Add SHA-256 checksums to release
run: |
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/release/app_nanos.json

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/release/app_nanosplus.json

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/release/app_nanox.json

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/release/release-text.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Binaries can be used with speculos https://github.com/LedgerHQ/speculos.
Command: `speculos iota-nanos` where `iota-nanos` is the binary for ledger nanos.
Command: `speculos nanos/iota` where `iota` is the binary.

*-app.hex files can be loaded on a real device with https://github.com/LedgerHQ/ledgerctl.
*.hex files can be loaded on a real device with https://github.com/LedgerHQ/ledgerctl.

First install ledgerctl https://github.com/LedgerHQ/ledgerctl?tab=readme-ov-file#install.

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ result-*

.vscode
iota-nanos
docker-outputs

0 comments on commit 663ac02

Please sign in to comment.