From bac8f08782df27de6b3473373887725ba557da7e Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Mon, 21 Sep 2026 14:36:48 +0200 Subject: [PATCH] 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 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21542dc..eed0842 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -182,7 +182,12 @@ jobs: - name: Create release env: 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: name: Publish to npm