Skip to content

Commit d1510e0

Browse files
committed
correct, upload list in release.yml
1 parent e00274f commit d1510e0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,14 @@ jobs:
230230
if ! gh release view "$TAG" >/dev/null 2>&1; then
231231
gh release create "$TAG" --title "microtex_rs $TAG" --notes-file release_notes.md || true
232232
fi
233-
# Upload only archive files (tar.gz and zip) to avoid directories and raw binaries
234-
gh release upload "$TAG" dist/*.tar.gz dist/*.zip --clobber
233+
# Find and upload archive files (tar.gz and zip) recursively from dist/
234+
ARCHIVES=$(find dist -type f \( -name '*.tar.gz' -o -name '*.zip' \) -print | paste -sd ' ' -)
235+
if [ -z "$ARCHIVES" ]; then
236+
echo "No archives found to upload"
237+
else
238+
echo "Uploading: $ARCHIVES"
239+
gh release upload "$TAG" $ARCHIVES --clobber
240+
fi
235241
236242
- name: Show release URL
237243
env:

0 commit comments

Comments
 (0)