-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (49 loc) · 1.39 KB
/
Copy pathcreate-release.yml
File metadata and controls
55 lines (49 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Create Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
issues: read
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate changelog from issues
id: changelog
uses: janheinrichmerker/action-github-changelog-generator@v2.4
with:
token: ${{ secrets.GITHUB_TOKEN }}
issues: true
pullRequests: false
onlyLastTag: true
excludeLabels: 'duplicate,question,invalid,wontfix'
configureSections: |
{
"features": {
"prefix": "### 🚀 New Features",
"labels": ["feature", "feature auto"]
},
"enhancements": {
"prefix": "### ✨ Enhancements",
"labels": ["enhancement", "enhancement auto"]
},
"bugfixes": {
"prefix": "### 🐛 Fixed Bugs",
"labels": ["bug", "bug auto"]
}
}
output: CHANGELOG.md
- name: Show generated changelog
run: cat CHANGELOG.md
- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
body_path: CHANGELOG.md
draft: true
prerelease: false