|
64 | 64 | echo "⚠️ Coverage summary file not found" >> $GITHUB_STEP_SUMMARY |
65 | 65 | fi |
66 | 66 |
|
| 67 | + - name: Generate Rich Release Notes |
| 68 | + id: release_notes |
| 69 | + |
| 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 | + |
67 | 113 | - name: Create NuGet package |
68 | 114 | working-directory: src |
69 | 115 | run: dotnet pack --configuration Release --no-build /p:PackageVersion=${{ steps.gitversion.outputs.fullSemVer }} --output ../packages |
|
0 commit comments