Skip to content

Commit af0864f

Browse files
committed
ci: include all commits (not just PRs) in Release
1 parent 515cb33 commit af0864f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ jobs:
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:
@@ -75,7 +78,18 @@ jobs:
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 }}

0 commit comments

Comments
 (0)