docs: 测试 release

This commit is contained in:
linyq 2024-11-18 15:18:44 +08:00
parent f16023d276
commit 3fc22a4df8
2 changed files with 69 additions and 0 deletions

47
.github/release-drafter.yml vendored Normal file
View File

@ -0,0 +1,47 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: '🚀 新功能'
labels:
- 'feature'
- 'enhancement'
- title: '🐛 Bug 修复'
labels:
- 'fix'
- 'bug'
- title: '🧰 维护'
labels:
- 'chore'
- 'maintenance'
- title: '📚 文档'
labels:
- 'docs'
- 'documentation'
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
version-resolver:
major:
labels:
- 'major'
- 'breaking'
minor:
labels:
- 'minor'
- 'feature'
patch:
labels:
- 'patch'
- 'fix'
- 'bug'
- 'maintenance'
default: patch
template: |
## 更新内容
$CHANGES
## 贡献者
$CONTRIBUTORS

22
.github/workflows/release-drafter.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Release Drafter
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, synchronize]
permissions:
contents: read
jobs:
update_release_draft:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}