Skip to content

Commit 460f675

Browse files
committed
ci(workflow): 将自动发布标签从"latest"改为"${{ github.ref_name }}"
修改自动发布标签以使用当前分支或标签名称,确保发布版本与代码版本一致
1 parent f5f634c commit 460f675

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ jobs:
2222
with:
2323
repo_token: "${{ secrets.GITHUB_TOKEN }}"
2424
prerelease: false
25-
automatic_release_tag: "latest" # 添加这一行
25+
automatic_release_tag: "${{ github.ref_name }}" # 修改这一行
2626

0 commit comments

Comments
 (0)