From 0f436e375401c07f65e95dd8e17c703e7b8da87f Mon Sep 17 00:00:00 2001 From: tidex <46107860+tidexe@users.noreply.github.com> Date: Sun, 16 Feb 2025 15:59:48 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=9B=B4=E6=96=B0=20Release=20=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除对特定分支的限制 - 增加手动发布选项 - 修改触发条件,当 "Build Artifacts" 工作流完成时自动触发 --- .github/workflows/create-release.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index cd7371df..e6f5b7a1 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -1,12 +1,11 @@ name: Release on: - workflow_run: - workflows: ["Build"] # 监听名为“Build”的工作流 - types: - - completed # 当Build工作流完成时触发 - branches: - - master # 限定分支 + workflow_dispatch: # 手动发布 + workflow_run: # 当 build 流程成功完成后自动触发 + workflows: ["Build Artifacts"] + types: [completed] + jobs: release: runs-on: ubuntu-latest