mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-16 01:00:43 +08:00
[fix] 修正release流
This commit is contained in:
parent
f4aa4ec977
commit
e8a2409fc5
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
@ -2,7 +2,7 @@ name: Build and Release
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
branches:
|
||||||
- main # 监听 main 分支的 push 操作
|
- main # 监听 main 分支的 push 操作
|
||||||
workflow_dispatch: # 手动触发支持
|
workflow_dispatch: # 手动触发支持
|
||||||
|
|
||||||
@ -36,11 +36,11 @@ jobs:
|
|||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref_name }} # 使用当前推送的标签名
|
tag_name: $VERSION
|
||||||
release_name: "Release ${{ github.ref_name }}"
|
release_name: "Release $VERSION"
|
||||||
body: |
|
|
||||||
$(git log -1 --pretty=format:%B)
|
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user