Skip to content

Commit d752033

Browse files
committed
ci: generate release notes
1 parent 28f8c4a commit d752033

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
changelog:
2+
categories:
3+
- title: Breaking changes
4+
labels: [breaking-change]
5+
- title: Features
6+
labels: [feature, enhancement]
7+
- title: Fixes
8+
labels: [fix, bug]
9+
- title: Maintenance
10+
labels: [chore, documentation, dependencies]
11+
- title: Other changes
12+
labels: ['*']
13+
exclude:
14+
labels: [skip-changelog]
15+
authors: [dependabot]

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
16+
with:
17+
fetch-depth: 0
18+
- name: Create GitHub release with generated notes
19+
env:
20+
GH_TOKEN: ${{ github.token }}
21+
run: gh release create "$GITHUB_REF_NAME" --verify-tag --generate-notes --title "$GITHUB_REF_NAME"

0 commit comments

Comments
 (0)