ci: Improve release workflow with automated changelog and OneKey packages

- Created .github/release-template/release-info.md with fixed release information
- Created script/generate-changelog.sh to generate changelog from latest 10 commits (excluding release commits)
- Modified .github/workflows/release.yml to:
  - Download NapCat.Shell.Windows.OneKey.zip and NapCat.Framework.Windows.OneKey.zip from latest release
  - Generate release notes by combining fixed template with automated changelog
  - Upload OneKey packages along with other build artifacts

Co-authored-by: sj817 <74231782+sj817@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-07 02:35:24 +00:00
parent 372b829af2
commit 7105571ed7
3 changed files with 55 additions and 3 deletions

8
script/generate-changelog.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
# Get the latest 10 commits excluding those starting with "release:"
echo "## 更新"
echo ""
git log --oneline -20 --pretty=format:"%s" | grep -v "^release:" | head -10 | while read -r line; do
echo "- $line"
done