Skip to content

Commit 9a8d718

Browse files
author
280Zo
committed
update the release zip step
1 parent 3051198 commit 9a8d718

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
name: Build and Release ZMK Firmware
22
on:
33
push:
4-
tags: ["v*"]
5-
branches: ["**"]
4+
branches:
5+
- main
6+
tags:
7+
- 'v1.0.0'
68
workflow_dispatch:
79

810
jobs:
@@ -233,9 +235,14 @@ jobs:
233235
steps:
234236
- uses: actions/download-artifact@v4
235237
with: { path: combo-artifacts/ }
238+
236239
- name: Zip each combo
237240
working-directory: combo-artifacts
238-
run: for d in */; do zip -j "${d%/}.zip" "\$d"*; done
241+
run: |
242+
for d in */; do
243+
zip -j "${d%/}.zip" "$d"*
244+
done
245+
239246
- uses: softprops/action-gh-release@v1
240247
with:
241248
tag_name: ${{ github.ref_name }}

0 commit comments

Comments
 (0)