mirror of
https://github.com/Dvorinka/Primora.git
synced 2026-10-28 07:41:23 +00:00
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:
1 parent
f9cd641164
commit
bac8f08782
1 file changed
+6
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user