@@ -713,6 +713,50 @@ jobs:
713713 if : startsWith(github.ref, 'refs/tags/v') && (needs.changes.outputs.rust == 'true' || true) # 在版本tag推送时总是触发(允许tag绕过paths-filter)
714714
715715 steps :
716+ - name : " [CHECKOUT] Checkout Repository for Release Notes"
717+ uses : actions/checkout@v4
718+
719+ - name : " [EXTRACT] Extract Release Notes from RELEASE_NOTES.md"
720+ id : extract-notes
721+ shell : bash
722+ run : |
723+ # 从 tag 名称提取版本号(例如 v0.1.3)
724+ version="${{ github.ref_name }}"
725+
726+ # 使用 awk 提取对应版本的 release notes
727+ release_body=$(awk "
728+ /^## $version / {
729+ found=1
730+ next
731+ }
732+ found && /^## v[0-9]/ {
733+ exit
734+ }
735+ found {
736+ print
737+ }
738+ " RELEASE_NOTES.md | sed '$d') # 移除最后的空行
739+
740+ # 将多行内容保存到输出
741+ {
742+ echo 'body<<EOF'
743+ echo "$release_body"
744+ echo ""
745+ echo "---"
746+ echo "### 📦 Available Downloads / 可用下载"
747+ echo "- **Windows x64**: \`MacinMeter-DR-Tool-*-windows-x64.exe\`"
748+ echo "- **macOS Intel**: \`MacinMeter-DR-Tool-*-macos-intel\`"
749+ echo "- **macOS Apple Silicon**: \`MacinMeter-DR-Tool-*-macos-arm64\`"
750+ echo "- **Linux x64**: \`MacinMeter-DR-Tool-*-linux-x64\`"
751+ echo ""
752+ echo "### 🖥️ GUI (Experimental / 实验版)"
753+ echo "- **macOS**: \`MacinMeter-DR-GUI-*.dmg\`"
754+ echo "- **Windows**: \`MacinMeter-DR-GUI-*.exe\`"
755+ echo ""
756+ echo "**Full Changelog**: https://github.com/${{ github.repository }}/blob/main/RELEASE_NOTES.md"
757+ echo "EOF"
758+ } >> $GITHUB_OUTPUT
759+
716760 - name : " [DOWNLOAD] Download All Artifacts"
717761 uses : actions/download-artifact@v4
718762
@@ -721,32 +765,9 @@ jobs:
721765 with :
722766 draft : false
723767 prerelease : contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc')
724- generate_release_notes : true
768+ generate_release_notes : false
725769 files : |
726770 MacinMeter-DR-Tool-*/MacinMeter-DR-Tool-*
727- body : |
728- ## MacinMeter DR Tool Release
729-
730- ### Features
731- - [OK] 基于foobar2000 DR Meter的衍生实现
732- - [OK] 基于IDA Pro逆向工程的算法研究与独立实现
733- - [OK] SIMD加速和多线程支持
734- - [OK] 批量处理模式(双击启动)
735- - [OK] 支持多种音频格式 (WAV, FLAC, MP3, AAC, OGG)
736- - [OK] 兼容foobar2000格式的详细分析报告
737-
738- ### Available Platforms
739- - **Windows x64**: `MacinMeter-DR-Tool-*-windows-x64.exe`
740- - **macOS Intel**: `MacinMeter-DR-Tool-*-macos-intel`
741- - **macOS Apple Silicon**: `MacinMeter-DR-Tool-*-macos-arm64`
742- - **Linux x64**: `MacinMeter-DR-Tool-*-linux-x64`
743-
744- ### Quick Start
745- 1. Download the binary for your platform
746- 2. Place in a folder with audio files
747- 3. Double-click to run (or use command line)
748- 4. Results saved to `DR_Analysis_Results_*.txt`
749-
750- **Full Changelog**: https://github.com/${{ github.repository }}/compare/${{ github.event.before }}...${{ github.sha }}
771+ body : ${{ steps.extract-notes.outputs.body }}
751772 env :
752773 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments