diff --git a/.github/workflows/build_release.yaml b/.github/workflows/build_release.yaml index 3e83cc8..6363dab 100644 --- a/.github/workflows/build_release.yaml +++ b/.github/workflows/build_release.yaml @@ -84,8 +84,14 @@ jobs: fi echo "MajorVer=$majorVer LastVer=$lastVer NextVer=$nextVer" echo "GIT_VERSION=${nextVer//v/}" >> $GITHUB_ENV - - name: Fix RELEASE.md version - run: sed -i 's|#{GIT_VERSION}|${{ env.GIT_VERSION }}|g' RELEASE.md + - name: Generate RELEASE details + run: | + echo "# Release ${{ env.GIT_VERSION }}" > RELEASE.tmp + echo "" >> RELEASE.tmp + lastReleasedVer=$(git tag --sort version:refname --list "v$majorVer.*" | tail -n1) + git log --pretty="- %s (%h)" "$lastReleasedVer..HEAD" >> RELEASE.tmp + echo "" >> RELEASE.tmp + cat RELEASE.md >> RELEASE.tmp - name: 'Release debian files' uses: ncipollo/release-action@v1 with: @@ -94,4 +100,4 @@ jobs: updateOnlyUnreleased: true generateReleaseNotes: true prerelease: true - bodyFile: RELEASE.md + bodyFile: RELEASE.tmp diff --git a/RELEASE.md b/RELEASE.md index 82cf961..002f992 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,7 +1,3 @@ -# Release #{GIT_VERSION} - -- debian: support bookworm compilation - ## Variants Download correct version for your platform: