File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments