Skip to content

Commit 638f993

Browse files
chore: zip on release
1 parent e2426b7 commit 638f993

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

.github/workflows/_package-publish.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,24 @@ jobs:
103103
with:
104104
pattern: dist_native-*
105105
path: dist_native_all/
106-
merge-multiple: true
106+
merge-multiple: false
107+
108+
- name: Create zip archives for native executables
109+
shell: bash
110+
run: |
111+
mkdir -p dist_native_zipped/
112+
cd dist_native_all/
113+
for dir in */; do
114+
if [ -d "$dir" ]; then
115+
platform_name=${dir%/}
116+
echo "Creating zip for platform: $platform_name"
117+
cd "$dir"
118+
zip -r "../../dist_native_zipped/$platform_name.zip" .
119+
cd ..
120+
fi
121+
done
122+
cd ..
123+
ls -la dist_native_zipped/
107124
108125
- name: Docs
109126
shell: bash
@@ -142,7 +159,7 @@ jobs:
142159
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
143160
shell: bash
144161
run: |
145-
gh release create ${{ github.ref_name }} ./dist/* ./reports/* ./dist_native_all/* \
162+
gh release create ${{ github.ref_name }} ./dist/* ./reports/* ./dist_native_zipped/* \
146163
--notes-file ${{ steps.git-cliff.outputs.changelog }}
147164
148165
- name: Allow other workflows to trigger on release

0 commit comments

Comments
 (0)