Skip to content

Commit 2e2941d

Browse files
committed
[chore]
增加自动化发布
1 parent 43a9b91 commit 2e2941d

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter
2+
name-template: 'v$NEXT_PATCH_VERSION 🌈'
3+
tag-template: 'v$NEXT_PATCH_VERSION'
4+
version-template: $MAJOR.$MINOR.$PATCH
5+
# Emoji reference: https://gitmoji.carloscuesta.me/
6+
categories:
7+
- title: '🚀 Features'
8+
labels:
9+
- 'feature'
10+
- 'enhancement'
11+
- 'kind/feature'
12+
- title: '🐛 Bug Fixes'
13+
labels:
14+
- 'fix'
15+
- 'bugfix'
16+
- 'bug'
17+
- 'regression'
18+
- 'kind/bug'
19+
- title: 📝 Documentation updates
20+
labels:
21+
- documentation
22+
- 'kind/doc'
23+
- title: 👻 Maintenance
24+
labels:
25+
- chore
26+
- dependencies
27+
- 'kind/chore'
28+
- 'kind/dep'
29+
- title: 🚦 Tests
30+
labels:
31+
- test
32+
- tests
33+
exclude-labels:
34+
- reverted
35+
- no-changelog
36+
- skip-changelog
37+
- invalid
38+
change-template: '* $TITLE (#$NUMBER) @$AUTHOR'
39+
template: |
40+
## What’s Changed
41+
$CHANGES
42+
Terms
43+
Privacy
44+
Security

.github/workflows/release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, reopened, synchronize]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
update_release_draft:
15+
permissions:
16+
contents: write # for release-drafter/release-drafter to create a github release
17+
pull-requests: write # for release-drafter/release-drafter to add label to PR
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: release-drafter/release-drafter@v5
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

0 commit comments

Comments
 (0)