Skip to content

Commit cc3c1ea

Browse files
committed
ci: flatten the artifacts
1 parent fbe6ff6 commit cc3c1ea

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,18 @@ jobs:
6565
6666
- name: Create GitHub release and upload assets
6767
run: |
68+
# Flatten the artifcats
69+
shopt -s nullglob
70+
for d in bin/*; do
71+
if [ -d "$d" ]; then
72+
for f in "$d"/*; do
73+
mv "$f" bin/
74+
done
75+
rmdir "$d"
76+
fi
77+
done
78+
79+
# Create release
6880
if ! gh release view "${GITHUB_REF_NAME}" >/dev/null 2>&1; then
6981
gh release create "${GITHUB_REF_NAME}" \
7082
--title "Release ${GITHUB_REF_NAME}" \

0 commit comments

Comments
 (0)