From d561232d19962cd91378439e7cd76d8b37e703df Mon Sep 17 00:00:00 2001 From: TomZz Date: Fri, 12 Jun 2026 00:34:42 +0800 Subject: [PATCH] Fix duplicate release notes generation - Move GitHub Release creation to a separate publish job that runs after all matrix builds finish to prevent concurrent appends to the release body. --- .github/workflows/release.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d483205..226f0c3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -151,10 +151,20 @@ jobs: name: ${{ matrix.name }} path: ${{ env.ASSET }} + publish: + name: Publish Release + needs: build + if: startsWith(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + steps: + - name: Download all workflow artifacts + uses: actions/download-artifact@v4 + with: + path: dist + - name: Attach to GitHub Release - if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: - files: ${{ env.ASSET }} + files: dist/**/* generate_release_notes: true fail_on_unmatched_files: true