Skip to content

Commit 169ce4f

Browse files
authored
fix: artifact uploads (#5)
* fix: fail if no build uploaded * chore: debug info * chore: remove debug step; fix file path * fix: firmware name * fix: try hardcoded name * chore: update pattern
1 parent 91543cb commit 169ce4f

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
include:
19-
- keyboard: zsa/moonlander/reva
20-
keymap: oryx
21-
- keyboard: zsa/moonlander/revb
22-
keymap: oryx
2319
- keyboard: zsa/moonlander/reva
2420
keymap: klayi
21+
firmware: zsa_moonlander_reva_klayi
2522
- keyboard: zsa/moonlander/revb
2623
keymap: klayi
24+
firmware: zsa_moonlander_revb_klayi
2725

2826
steps:
2927
- name: Checkout QMK Firmware
@@ -41,8 +39,10 @@ jobs:
4139
qmk compile -kb ${{ matrix.keyboard }} -km ${{ matrix.keymap }} -e SKIP_GIT=1
4240
4341
- name: Upload firmware
44-
if: matrix.keymap == 'klayi'
4542
uses: actions/upload-artifact@v4
4643
with:
47-
name: firmware-${{ matrix.keyboard == 'zsa/moonlander/reva' && 'reva' || 'revb' }}
48-
path: .build/*.bin
44+
name: ${{ matrix.firmware }}
45+
path: |
46+
.build/${{ matrix.firmware }}.bin
47+
.build/${{ matrix.firmware }}.hex
48+
if-no-files-found: error

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
uses: actions/download-artifact@v4
3535
with:
3636
path: release
37-
pattern: firmware-*
37+
pattern: zsa_moonlander_*_klayi
3838
merge-multiple: true
3939
run-id: ${{ github.event.workflow_run.id }}
4040
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)