Refactor workflow triggers in alpha.yml to clarify usage of git tags and remove commented-out sections

This commit is contained in:
Tunglies
2025-06-06 11:26:09 +08:00
committed by wonfen
parent 46b7a520cd
commit 698c47da69

View File

@@ -4,14 +4,21 @@ on:
# 因为 alpha 不再负责频繁构建,且需要相对于 autobuild 更稳定使用环境 # 因为 alpha 不再负责频繁构建,且需要相对于 autobuild 更稳定使用环境
# 所以不再使用 workflow_dispatch 触发 # 所以不再使用 workflow_dispatch 触发
# 应当通过 git tag 来触发构建 # 应当通过 git tag 来触发构建
# workflow_dispatch: # TODO 手动控制版本号
push: workflow_dispatch:
# 应当限制在 dev 分支上触发发布。 # inputs:
branches: # tag_name:
- dev # description: "Alpha tag name (e.g. v1.2.3-alpha.1)"
# 应当限制 v*.*.*-alpha* 的 tag 来触发发布。 # required: true
tags: # type: string
- "v*.*.*-alpha*"
# push:
# # 应当限制在 dev 分支上触发发布。
# branches:
# - dev
# # 应当限制 v*.*.*-alpha* 的 tag 来触发发布。
# tags:
# - "v*.*.*-alpha*"
permissions: write-all permissions: write-all
env: env:
TAG_NAME: alpha TAG_NAME: alpha