@@ -36,19 +36,45 @@ jobs:
3636 run : |
3737 mkdir release_dist
3838 cp build/x86_64-clang-release/noise.iso release_dist/
39-
40- # 2. UPDATED STEP: Use the env.DATE variable for Name and Tag
39+ - name : Generate Release Notes
40+ run : |
41+ ISO_HASH=$(sha256sum release_dist/noise.iso | cut -d ' ' -f 1)
42+ CHANGELOG=$(git log -n 5 --pretty=format:"- %h - %s (%an)")
43+ cat <<EOF > release_notes.md
44+ ## Nightly Build - ${{ env.DATE }}
45+
46+ > **Development Snapshot**: This build is automatically generated from the latest source code. It may contain bugs or incomplete features.
47+
48+ ### Build Information
49+ | Detail | Value |
50+ | :--- | :--- |
51+ | **Commit** | [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}) |
52+ | **Branch** | ${{ github.ref_name }} |
53+ | **Built At** | $(date -u +'%Y-%m-%d %H:%M:%S UTC') |
54+
55+ ### Verification (SHA256)
56+ Use this hash to verify the integrity of \`noise.iso\`:
57+ \`\`\`
58+ $ISO_HASH
59+ \`\`\`
60+
61+ ### Recent Changes
62+ $CHANGELOG
63+
64+ ### How to Run (QEMU)
65+ \`\`\`bash
66+ qemu-system-x86_64 -cdrom noise.iso -m 512M -serial stdio
67+ \`\`\`
68+ EOF
69+
4170 - name : Create Nightly Release
4271 uses : softprops/action-gh-release@v1
4372 with :
4473 name : Nightly Build - ${{ env.DATE }}
4574 tag_name : nightly-${{ env.DATE }}
46- body : |
47- Automated nightly build.
48- **Date:** ${{ env.DATE }}
49- **Commit:** ${{ github.sha }}
75+ body_path : release_notes.md
5076 files : |
5177 release_dist/*
5278 prerelease : true
5379 env :
54- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
80+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments