Skip to content

Commit 8c86830

Browse files
committed
compress artifacts before attaching to release
1 parent de81704 commit 8c86830

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ jobs:
3333
- name: List Artifacts
3434
run: ls -R ./artifacts
3535

36+
- name: Compress Static Library Files
37+
run: |
38+
for dir in ./artifacts/staticlibs/*; do
39+
if [ -d "$dir" ]; then
40+
base_name=$(basename "$dir")
41+
cd "$dir"
42+
zip "../${base_name}.zip" "${base_name}"
43+
cd - > /dev/null
44+
fi
45+
done
46+
3647
- name: Attach Artifacts to GitHub Release
3748
uses: softprops/action-gh-release@v2
3849
with:

0 commit comments

Comments
 (0)