ci: 更新 Release 工作流配置

- 移除对特定分支的限制
- 增加手动发布选项
- 修改触发条件,当 "Build Artifacts" 工作流完成时自动触发
This commit is contained in:
tidex 2025-02-16 15:59:48 +08:00
parent c137db55f9
commit 0f436e3754
1 changed files with 5 additions and 6 deletions

View File

@ -1,12 +1,11 @@
name: Release name: Release
on: on:
workflow_run: workflow_dispatch: # 手动发布
workflows: ["Build"] # 监听名为“Build”的工作流 workflow_run: # 当 build 流程成功完成后自动触发
types: workflows: ["Build Artifacts"]
- completed # 当Build工作流完成时触发 types: [completed]
branches:
- master # 限定分支
jobs: jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest