fix(packaging): prevent duplicate RPM in release by cleaning rpmbuild staging tree
Build and Publish Release / Build Packages and Publish (push) Successful in 42s
Build and Publish Release / Build Packages and Publish (push) Successful in 42s
This commit is contained in:
1 parent
c89aa3d1c7
commit
7972834e90
2 files changed
+6
-3
No files matched your search
@@ -44,7 +44,7 @@ jobs:
|
||||
PKG_TOKEN: ${{ secrets.PACKAGES_GENERATION || secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
echo "=== Publishing to Gitea Package Registry ==="
|
||||
RPM_FILE=$(find dist -name "*.rpm" 2>/dev/null | head -n 1)
|
||||
RPM_FILE=$(ls dist/*.rpm 2>/dev/null | head -n 1)
|
||||
DEB_FILE=$(ls dist/*.deb 2>/dev/null | head -n 1)
|
||||
|
||||
if [ -n "$RPM_FILE" ] && [ -f "$RPM_FILE" ]; then
|
||||
@@ -124,11 +124,11 @@ jobs:
|
||||
"${SERVER_URL}/api/v1/repos/${REPO}/releases/${REL_ID}/assets/${aid}" || true
|
||||
done
|
||||
|
||||
# Target only user-facing binaries
|
||||
# Target only user-facing binaries in top-level dist/
|
||||
ASSET_FILES=(
|
||||
$(ls dist/*.tar.gz 2>/dev/null || true)
|
||||
$(ls dist/*.deb 2>/dev/null || true)
|
||||
$(find dist -name "*.rpm" 2>/dev/null | grep -v 'src\.rpm' || true)
|
||||
$(ls dist/*.rpm 2>/dev/null || true)
|
||||
)
|
||||
|
||||
for f in "${ASSET_FILES[@]}"; do
|
||||
|
||||
Reference in new issue
Block a user