Skip to content

Commit b6f8420

Browse files
add steps to generate release notes
1 parent c10fde3 commit b6f8420

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/build.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,52 @@ jobs:
6464
echo "⚠️ Coverage summary file not found" >> $GITHUB_STEP_SUMMARY
6565
fi
6666
67+
- name: Generate Rich Release Notes
68+
id: release_notes
69+
uses: mikepenz/[email protected]
70+
with:
71+
configuration: |
72+
{
73+
"template": "## 🚀 Release ${{ steps.gitversion.outputs.semVer }}\n\n### 📅 Release Information\n- **Version**: ${{ steps.gitversion.outputs.semVer }}\n- **NuGet Version**: ${{ steps.gitversion.outputs.fullSemVer }}\n- **Build Date**: $(date -u +'%Y-%m-%d %H:%M:%S UTC')\n- **Commit**: ${{ github.sha }}\n\n#{{CHANGELOG}}\n\n### 📊 Statistics\n- **Total Changes**: #{{UNCATEGORIZED_COUNT}} commits\n- **Contributors**: #{{CONTRIBUTORS}}\n\n---\n*Generated automatically by GitHub Actions*",
74+
"categories": [
75+
{
76+
"title": "## 🚀 Features",
77+
"labels": ["feature", "enhancement", "feat"]
78+
},
79+
{
80+
"title": "## 🐛 Bug Fixes",
81+
"labels": ["bug", "fix", "bugfix"]
82+
},
83+
{
84+
"title": "## 📚 Documentation",
85+
"labels": ["documentation", "docs"]
86+
},
87+
{
88+
"title": "## 🔧 Maintenance",
89+
"labels": ["maintenance", "chore", "refactor"]
90+
},
91+
{
92+
"title": "## ⚠️ Breaking Changes",
93+
"labels": ["breaking", "breaking-change"]
94+
}
95+
],
96+
"pr_template": "- #{{TITLE}} (#{{NUMBER}}) by @#{{AUTHOR}}",
97+
"empty_template": "- #{{TITLE}} (#{{HASH}}) by @#{{AUTHOR}}",
98+
"max_pull_requests": 200,
99+
"max_back_track_time_days": 365
100+
}
101+
env:
102+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103+
104+
- name: Save Release Notes to File
105+
run: echo "${{ steps.release_notes.outputs.changelog }}" > release-notes.md
106+
107+
- name: Upload Release Notes as artifact
108+
uses: actions/upload-artifact@v4
109+
with:
110+
name: release-notes
111+
path: release-notes.md
112+
67113
- name: Create NuGet package
68114
working-directory: src
69115
run: dotnet pack --configuration Release --no-build /p:PackageVersion=${{ steps.gitversion.outputs.fullSemVer }} --output ../packages

0 commit comments

Comments
 (0)