Skip to content

Commit b368590

Browse files
fix: simplify release workflow to only trigger on tags
Remove manual tag extraction and use auto-generated release notes. Only trigger on push to tags, not manual dispatch.
1 parent 35afe05 commit b368590

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
tags:
66
- 'v*.*.*'
7-
workflow_dispatch:
87

98
jobs:
109
create-release:
@@ -22,21 +21,10 @@ jobs:
2221
- name: Build package
2322
run: uv build
2423

25-
- name: Generate release notes
26-
id: release_notes
27-
run: |
28-
TAG=${GITHUB_REF#refs/tags/}
29-
echo "tag_name=$TAG" >> $GITHUB_OUTPUT
30-
echo "## Changes in $TAG" > release_notes.txt
31-
echo "" >> release_notes.txt
32-
echo "Built from commit: ${{ github.sha }}" >> release_notes.txt
33-
3424
- name: Create GitHub Release
3525
uses: softprops/action-gh-release@v2
3626
with:
37-
tag_name: ${{ steps.release_notes.outputs.tag_name }}
38-
name: Release ${{ steps.release_notes.outputs.tag_name }}
39-
body_path: release_notes.txt
27+
generate_release_notes: true
4028
files: |
4129
dist/*.whl
4230
dist/*.tar.gz

0 commit comments

Comments
 (0)