Skip to content

Commit 1a11e7c

Browse files
committed
添加release构建action
1 parent b27eb9a commit 1a11e7c

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/release-drafter.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
template: |
2+
## What’s Changed
3+
4+
$CHANGES

.github/workflows/release.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- main
8+
# pull_request event is required only for autolabeler
9+
pull_request:
10+
# Only following types are handled by the action, but one can default to all as well
11+
types: [opened, reopened, synchronize]
12+
# pull_request_target event is required for autolabeler to support PRs from forks
13+
# pull_request_target:
14+
# types: [opened, reopened, synchronize]
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
update_release_draft:
21+
permissions:
22+
contents: write # for release-drafter/release-drafter to create a github release
23+
pull-requests: write # for release-drafter/release-drafter to add label to PR
24+
runs-on: ubuntu-latest
25+
steps:
26+
# (Optional) GitHub Enterprise requires GHE_HOST variable set
27+
#- name: Set GHE_HOST
28+
# run: |
29+
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
30+
31+
# Drafts your next Release notes as Pull Requests are merged into "master"
32+
- uses: release-drafter/release-drafter@v5
33+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
34+
# with:
35+
# config-name: my-config.yml
36+
# disable-autolabeler: true
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

0 commit comments

Comments
 (0)