File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 6767 id-token : write # IMPORTANT: mandatory for PyPI trusted publishing
6868 steps :
6969 - uses : actions/checkout@v5
70+ with :
71+ fetch-depth : 0
72+ fetch-tags : true
7073 - name : Install uv and Python
7174 uses : astral-sh/setup-uv@v7
7275 with :
7578 run : uv build
7679 - name : Publish to PyPI
7780 uses : pypa/gh-action-pypi-publish@release/v1
81+ - name : Generate changelog with commitizen
82+ id : changelog
83+ run : |
84+ uv tool install commitizen
85+ VERSION="${GITHUB_REF_NAME#v}"
86+ CHANGELOG=$(cz changelog "$VERSION" --dry-run)
87+ {
88+ echo 'body<<EOF'
89+ echo "$CHANGELOG"
90+ echo EOF
91+ } >> "$GITHUB_OUTPUT"
7892 - name : Generate GitHub Release Notes
7993 uses : softprops/action-gh-release@v2
8094 with :
81- generate_release_notes : true
95+ body : ${{ steps.changelog.outputs.body }}
You can’t perform that action at this time.
0 commit comments