Skip to content

Commit a3b0c5a

Browse files
authored
Fix: release drafter (#14)
1 parent ac1b3ef commit a3b0c5a

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

.github/release-drafter.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,38 @@ name-template: 'Release $RESOLVED_VERSION'
22
tag-template: 'v$RESOLVED_VERSION'
33

44
template: |
5-
## Changes
65
7-
$CHANGES
6+
## Changelog for $RESOLVED_VERSION
87
8+
### 🚀 New Features
9+
$FEATURES
10+
11+
### 🐛 Bug Fixes
12+
$BUGS
13+
14+
### 📚 Documentation
15+
$DOCUMENTATION
16+
17+
### Other Changes
18+
$OTHER_CHANGES
919
1020
changelog:
1121
exclude:
1222
labels:
1323
- "ignore for release"
1424

1525
categories:
16-
- title: "🚀 New Features"
26+
- title: FEATURES
1727
labels:
1828
- enhancement
1929

20-
- title: "🐛 Bug Fixes"
30+
- title: BUGS
2131
labels:
2232
- bug
2333

24-
- title: "📚 Documentation"
34+
- title: DOCUMENTATION
2535
labels:
2636
- documentation
2737

28-
- title: "Other Changes"
38+
- title: other_changes
2939
labels: []

.github/workflows/release.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272
uses: release-drafter/release-drafter@v6
7373
with:
7474
tag: ${{ github.event.inputs.version }}
75+
publish: true
7576
env:
7677
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7778

@@ -82,12 +83,3 @@ jobs:
8283
files: artifacts/**/*
8384
env:
8485
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85-
86-
- name: Create GitHub Release
87-
uses: softprops/action-gh-release@v2
88-
with:
89-
tag_name: ${{ github.event.inputs.version }}
90-
name: Release ${{ github.event.inputs.version }}
91-
body: ${{ steps.draft_release.outputs.body }}
92-
env:
93-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)