mirror of
https://github.com/Dvorinka/Primora.git
synced 2026-10-28 07:41:23 +00:00
Merge pull request #6 from Dvorinka/fix/release-upload-files
ci: upload release assets by file, not glob
This commit is contained in:
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