Skip to content

Commit f1f9d64

Browse files
committed
测试生成Release
1 parent 26cd4dd commit f1f9d64

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release (Manual)
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: 'Release tag (e.g. v4.1.4)'
8+
required: true
9+
title:
10+
description: 'Release title (optional)'
11+
required: false
12+
13+
permissions:
14+
contents: write
15+
16+
jobs:
17+
release:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Create Release with changelog
26+
run: |
27+
npx changelogithub --sanitize ${{ github.event.inputs.tag }} ${{ github.event.inputs.title }}
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)