ci: upload release assets by file, not glob

Desktop artifacts extract to nested dirs (appimage/, deb/, rpm/);
dist-release/* expanded to directories and gh release create died on
"is a directory" mid-upload. find -type f builds the file list.

Authored By: TDvorak <[email protected]>

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Tomas DvorakandDevin committed 2026-09-21 14:36:48 +02:00
1 parent f9cd641164
commit bac8f08782
1 file changed
+6 -1
+6 -1
View File
@@ -182,7 +182,12 @@ jobs:
- name: Create release - name: Create release
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create "$VERSION" --title "$VERSION" --notes-file notes.md dist-release/* # Desktop artifacts extract to nested dirs (appimage/, deb/, ...) —
# a bare glob hands gh a directory and the upload dies mid-flight.
run: |
mapfile -t files < <(find dist-release -type f)
[ ${#files[@]} -gt 0 ] || { echo "no release assets found"; exit 1; }
gh release create "$VERSION" --title "$VERSION" --notes-file notes.md "${files[@]}"
npm-publish: npm-publish:
name: Publish to npm name: Publish to npm