更新 .gitea/workflows/demo.yaml

发布生产
This commit is contained in:
xiehaijun 2025-07-27 16:18:19 +00:00
parent 52d26dd801
commit 94fdcbaa53
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@ on:
types: [closed]
push:
branches: [ "main","releases/**" ]
tags:
- '*' # 任意的tag都会触发
# paths:
# - 'sub-project/**'
# - '!sub-project/docs/**' # !在正匹配之后匹配负模式(以 为前缀)将排除该路径。
@ -279,7 +281,7 @@ jobs:
#tag_name: ${{ needs.upload.outputs.tag-name }}
#tag_name: ${{ steps.vars.outputs.tag }}
fail_on_unmatched_files: true
name: Release ${{ steps.vars.outputs.tag }}
name: Release ${{ github.ref_name }}
make_latest: true # 指定是否将此版本设置为仓库的最新版本。草稿版和预发布版不能设置为最新版本。可以是true、false或legacy。
draft: false # 指示此版本是否为草稿
prerelease: false # 是否为预发布版本