Skip to content

Commit 470e40c

Browse files
committed
chore(release): add git release drafter
1 parent 18be506 commit 470e40c

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

.github/release-drafter.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name-template: "v$NEXT_PATCH_VERSION"
2+
tag-template: "v$NEXT_PATCH_VERSION"
3+
4+
categories:
5+
- title: "🚀 Features"
6+
labels: ["feature", "enhancement"]
7+
- title: "🐛 Fixes"
8+
labels: ["bug", "fix"]
9+
- title: "🧹 Maintenance"
10+
labels: ["chore", "refactor"]
11+
12+
change-template: "- $TITLE (#$NUMBER)"
13+
template: |
14+
## Changes
15+
$CHANGES

.github/workflows/release.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@ jobs:
6161
echo "Wheel: $WHEEL"
6262
echo "Sdist: $SDIST"
6363
64-
- name: Create Release
64+
- name: Draft & publish release notes
6565
id: create_release
66-
uses: softprops/action-gh-release@v1
66+
uses: release-drafter/release-drafter@v6
6767
with:
68-
tag_name: ${{ env.TAG }}
68+
tag: ${{ env.TAG }}
6969
name: Release ${{ env.TAG }}
70-
generate_release_notes: true
70+
version: ${{ env.TAG }}
71+
publish: true
7172
env:
7273
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7374

0 commit comments

Comments
 (0)