Skip to content

Commit 091ca7d

Browse files
committed
fix: manually zip up artifacts
1 parent 11f5ee1 commit 091ca7d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,16 @@ jobs:
2424
path: ./artifacts
2525
run-id: ${{ steps.get_run_id.outputs.run_id }}
2626
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
- name: Archive artifacts
28+
run: |
29+
cd artifacts
30+
for dir in */; do
31+
(cd "$dir" && zip "../${dir%/}.zip" *)
32+
done
2733
- name: Create release and upload assets
2834
id: create_release
2935
uses: ncipollo/release-action@v1
3036
with:
3137
token: ${{ secrets.GITHUB_TOKEN }}
32-
artifacts: "artifacts/*/*"
38+
artifacts: "artifacts/*.zip"
3339
tag: ${{ github.ref_name }}

0 commit comments

Comments
 (0)