Skip to content

Commit 369f14e

Browse files
committed
build(release): improve artifact handling robustness and logging
Update find commands for AppImage updater artifacts to use more generic wildcards. Configure `action-gh-release` to not fail on unmatched files. Set `actions/upload-artifact` to warn if signature files are not found. Enhance log messages for artifact preparation steps. These changes make artifact matching more resilient to filename variations. They prevent the release workflow from failing if optional artifacts are missing. Improved logging provides clearer feedback during artifact preparation.
1 parent 50fede5 commit 369f14e

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ jobs:
439439
run: |
440440
VERSION="${{ needs.create-release.outputs.version }}"
441441
442-
echo "Listing build output directory:"
442+
echo "=== Listing build output directory ==="
443443
ls -R src-tauri/target/release/bundle/
444444
445445
# Debian (using wildcard for safety)
@@ -451,15 +451,19 @@ jobs:
451451
# AppImage (using wildcard for safety)
452452
find src-tauri/target/release/bundle/appimage/ -name "*_${VERSION}_amd64.AppImage" -exec mv {} "ZeroLimit_${VERSION}_Linux_x64.AppImage" \;
453453
454-
# AppImage.tar.gz (optional updater artifact)
455-
find src-tauri/target/release/bundle/appimage/ -name "*_${VERSION}_amd64.AppImage.tar.gz" -exec mv {} "ZeroLimit_${VERSION}_Linux_x64.AppImage.tar.gz" \;
456-
find src-tauri/target/release/bundle/appimage/ -name "*_${VERSION}_amd64.AppImage.tar.gz.sig" -exec mv {} "ZeroLimit_${VERSION}_Linux_x64.AppImage.tar.gz.sig" \;
454+
# AppImage.tar.gz and signature (updater artifacts)
455+
find src-tauri/target/release/bundle/appimage/ -name "*.AppImage.tar.gz" ! -name "*.sig" -exec mv {} "ZeroLimit_${VERSION}_Linux_x64.AppImage.tar.gz" \;
456+
find src-tauri/target/release/bundle/appimage/ -name "*.AppImage.tar.gz.sig" -exec mv {} "ZeroLimit_${VERSION}_Linux_x64.AppImage.tar.gz.sig" \;
457+
458+
echo "=== Prepared artifacts in workspace ==="
459+
ls -la ZeroLimit_* || echo "No artifacts found!"
457460
458461
- name: Upload artifacts to release
459462
uses: softprops/action-gh-release@v2
460463
with:
461464
tag_name: v${{ needs.create-release.outputs.version }}
462465
draft: true
466+
fail_on_unmatched_files: false
463467
files: |
464468
ZeroLimit_*_Linux_x64.deb
465469
ZeroLimit_*_Linux_x64.rpm
@@ -472,6 +476,7 @@ jobs:
472476
with:
473477
name: signatures-linux
474478
path: ZeroLimit_*_Linux_x64.AppImage.tar.gz.sig
479+
if-no-files-found: warn
475480

476481
# ===========================================
477482
# 7. Publish Release + Generate latest.json

0 commit comments

Comments
 (0)