Skip to content

Commit f8db64e

Browse files
authored
github(actions): release maker should be fine now (#52)
1 parent 55ffa3e commit f8db64e

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/post_examples_to_release.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,10 @@ jobs:
7070
!${{ steps.strings.outputs.build-output-dir }}/*.*
7171
!${{ steps.strings.outputs.build-output-dir }}/*Makefile
7272
${{ steps.strings.outputs.build-output-dir }}/Release/*
73-
73+
post:
74+
runs-on: ubuntu-latest
75+
needs: ["build"]
76+
steps:
7477
- name: Download examples
7578
uses: actions/download-artifact@v4
7679
with:
@@ -81,6 +84,18 @@ jobs:
8184
run: |
8285
ls -AR artifacts/
8386
87+
- name: Zip platform artifacts
88+
run: |
89+
cd artifacts
90+
for dir in */; do
91+
if [ -d "$dir" ]; then
92+
platform_name=$(basename "$dir")
93+
zip_name="${platform_name%.*}.zip"
94+
zip -r "$zip_name" "$dir"
95+
echo "Created $zip_name"
96+
fi
97+
done
98+
8499
- name: Create GitHub Release
85100
id: create_release
86101

@@ -90,5 +105,4 @@ jobs:
90105
with:
91106
files: |
92107
artifacts/*
93-
artifacts/cpptui*/*
94108

0 commit comments

Comments
 (0)