Skip to content

[6220] mac和win CD流水线仅在正式版时复制并发布独立安装包 - #4735

Merged
PinkMagicFly merged 2 commits into
mainfrom
pigmagicfly/6220/cd-copy-installer-from-beta
Oct 16, 2026
Merged

PinkMagicFly merged 2 commits into
mainfrom
pigmagicfly/6220/cd-copy-installer-from-beta

Conversation

@PinkMagicFly

@PinkMagicFly PinkMagicFly commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

任务

6220:调整 macOS 与 Windows CD 流水线,仅在正式版本(非 RC 版本)时执行独立安装包复制与 Release 发布。
任务文档见 dev-agent PR:https://github.com/LiiiLabs/dev-agent/pull/149

What

  1. 保持独立安装包提取源不变:

    • macOS arm64 CD(cd_on_macos_arm64.yml)依然从 build/velopack_release_stable/*-Setup.pkg 复制;
    • Windows x64 CD(cd_research_on_windows.yml)依然从 build/velopack_release_stable 复制。
  2. 限制仅在正式发布时执行复制操作:

    • 为两端的 Copy standalone installer for release 步骤增加 if: ${{ !contains(github.ref_name, '-rc') }} 条件,与 Pack Velopack (stable) 保持完全一致;
    • RC 候选版本(带 -rc 的 tag)自动跳过该步骤。
  3. 分拆独立安装包 Release 上传步骤:

    • 常规 Release 步骤保持仅发布 build/mogan-release-*.zip;
    • 新增 Release standalone installer 步骤并配置条件 if: ${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, '-rc') }},仅在正式版发布独立安装包;
    • 彻底避免 RC 候选版本发布时因产物不存在而出现 Pattern 'build/MoganSTEM-*.exe' does not match any files 警告。

Why

此前在 PR #4719 中,独立安装包复制与 Release 上传写为无条件执行。但 RC 候选版本(带 -rc 的 tag,如 v2026.3.8-rc.1)不会打包 stable 通道,导致 build/velopack_release_stable/ 目录不存在,安装包未被复制,后续 Release 步骤告警。

独立安装包专为正式版本用户下载而设,RC 版本仅需发布 beta 增量/全量更新包。因此将复制与发布步骤均限定在非 RC 正式发布时执行,符合版本发布定位且流程干净无告警。

验证

  • 本地执行 python3 -c "import yaml; yaml.safe_load(open('.github/workflows/cd_on_macos_arm64.yml')); yaml.safe_load(open('.github/workflows/cd_research_on_windows.yml')); print('YAML valid')" 校验通过;
  • 产物复制目标文件名保持与既有 Release 一致:Windows 为 MoganSTEM-v<ver>-64bit-installer.exe,macOS 为 MoganSTEM-v<ver>-arm.pkg。

@PinkMagicFly PinkMagicFly changed the title [6220] mac和win CD流水线复制独立安装包统一调整为beta目录 [6220] mac和win CD流水线仅在正式版时复制并发布独立安装包 Oct 16, 2026

@MoonL79 MoonL79 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PinkMagicFly
PinkMagicFly merged commit 75f0730 into main Oct 16, 2026
@PinkMagicFly
PinkMagicFly deleted the pigmagicfly/6220/cd-copy-installer-from-beta branch October 16, 2026 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants