Skip to content

Commit 074123b

Browse files
authored
Fix release job (#7)
1 parent 56402c7 commit 074123b

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,24 @@ jobs:
108108
if: github.event_name == 'create' && github.event.ref_type == 'tag'
109109

110110
steps:
111-
- name: Checkout code
112-
uses: actions/checkout@v4
113-
114111
- name: Download all artifacts
115-
uses: actions/download-artifact@v6
112+
uses: actions/download-artifact@v4
116113
with:
117114
path: ./artifacts
118115

116+
- name: Pack up artifacts again for release
117+
run: |
118+
mkdir -p ./release-pack
119+
for dir in ./artifacts/*; do
120+
BOARD_NAME=$(basename "$dir")
121+
zip -r ./release-pack/${BOARD_NAME}.zip "$dir"
122+
done
123+
119124
- name: Create GitHub Release with auto-generated notes
120125
env:
121126
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122127
run: |
123128
gh release create ${{ github.ref_name }} \
124129
--title "Release ${{ github.ref_name }}" \
125130
--generate-notes \
126-
./artifacts/*.zip
131+
./release-pack/*.zip

0 commit comments

Comments
 (0)