Skip to content

Commit 59354cc

Browse files
committed
Fix release asset uploads
1 parent 2271749 commit 59354cc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,9 @@ jobs:
307307
- name: Upload assets to GitHub Release
308308
env:
309309
GH_TOKEN: ${{ github.token }}
310+
shell: bash
310311
run: |
311312
tag="${{ github.event.release.tag_name }}"
312-
# Upload everything you built: main RPMs, debuginfo, debugsource, and SRPMs
313-
gh release upload "$tag" dist/**/*.rpm dist/**/*.src.rpm --clobber
313+
mapfile -t files < <(find dist -type f \( -name '*.rpm' -o -name '*.src.rpm' \) | sort)
314+
((${#files[@]})) || { echo "No RPMs found under dist/"; exit 1; }
315+
gh release upload "$tag" "${files[@]}" --clobber --repo "${GITHUB_REPOSITORY}"

0 commit comments

Comments
 (0)