From 52d6398179bc645da9be773cc2b4d8f88ac8a8b4 Mon Sep 17 00:00:00 2001 From: plebeius Date: Mon, 18 Aug 2025 14:17:40 +0200 Subject: [PATCH] ci(release): upload artifacts per job without body and finalize release notes after all jobs --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 60959995..c9d095a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,7 +52,7 @@ jobs: artifacts: 'dist/seedit*.AppImage,dist/seedit*-arm64.AppImage,dist/seedit-html*.zip' token: ${{ secrets.GITHUB_TOKEN }} replacesArtifacts: true - bodyFile: "release-body.txt" + omitBody: true allowUpdates: true mac: @@ -102,7 +102,7 @@ jobs: artifacts: 'dist/seedit*.dmg,dist/seedit*-arm64.dmg' token: ${{ secrets.GITHUB_TOKEN }} replacesArtifacts: true - bodyFile: "release-body.txt" + omitBody: true allowUpdates: true windows: @@ -144,7 +144,7 @@ jobs: artifacts: 'dist/seedit*.exe,dist/seedit*-arm64.exe' token: ${{ secrets.GITHUB_TOKEN }} replacesArtifacts: true - bodyFile: "release-body.txt" + omitBody: true allowUpdates: true android: @@ -198,5 +198,25 @@ jobs: artifacts: 'dist/seedit*.apk' token: ${{ secrets.GITHUB_TOKEN }} replacesArtifacts: true - bodyFile: "release-body.txt" + omitBody: true allowUpdates: true + + finalize-release: + runs-on: ubuntu-22.04 + needs: [linux, mac, windows, android] + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Generate final release body from GitHub assets + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_REPOSITORY: ${{ github.repository }} + GITHUB_REF_NAME: ${{ github.ref_name }} + run: node scripts/release-body > release-body.txt + - name: Update release body only + uses: ncipollo/release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + allowUpdates: true + bodyFile: "release-body.txt"