From ca280690c6cb3299affdb8e36bf726fe1d4daa69 Mon Sep 17 00:00:00 2001 From: bincxz <16399091+binaricat@users.noreply.github.com> Date: Thu, 1 Jan 2026 22:55:20 +0800 Subject: [PATCH] Refines artifact handling in CI workflow Limits uploaded and released artifacts to specific file types to avoid unnecessary files, improving release clarity. Adds artifact listing for easier debugging and ensures release notes are auto-generated. Sets unmatched files to not fail the release step for smoother automation. --- .github/workflows/build.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ca6b1d18..2201ebba2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,7 +49,18 @@ jobs: uses: actions/upload-artifact@v4 with: name: netcatty-${{ matrix.os }} - path: release/** + path: | + release/*.dmg + release/*.zip + release/*.exe + release/*.msi + release/*.AppImage + release/*.deb + release/*.rpm + release/*.tar.gz + release/*.blockmap + release/latest*.yml + if-no-files-found: ignore release: name: release @@ -59,13 +70,23 @@ jobs: permissions: contents: write steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Download artifacts uses: actions/download-artifact@v4 with: - path: release + path: artifacts merge-multiple: true + - name: List artifacts + run: ls -la artifacts/ + - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: - files: release/** + files: artifacts/* + generate_release_notes: true + fail_on_unmatched_files: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}