Repository navigation
[6220] mac和win CD流水线仅在正式版时复制并发布独立安装包 - #4735
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
任务
6220:调整 macOS 与 Windows CD 流水线,仅在正式版本(非 RC 版本)时执行独立安装包复制与 Release 发布。
任务文档见 dev-agent PR:https://github.com/LiiiLabs/dev-agent/pull/149
What
保持独立安装包提取源不变:
cd_on_macos_arm64.yml)依然从build/velopack_release_stable/*-Setup.pkg复制;cd_research_on_windows.yml)依然从build/velopack_release_stable复制。限制仅在正式发布时执行复制操作:
Copy standalone installer for release步骤增加if: ${{ !contains(github.ref_name, '-rc') }}条件,与Pack Velopack (stable)保持完全一致;-rc的 tag)自动跳过该步骤。分拆独立安装包 Release 上传步骤:
Release步骤保持仅发布build/mogan-release-*.zip;Release standalone installer步骤并配置条件if: ${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, '-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')"校验通过;MoganSTEM-v<ver>-64bit-installer.exe,macOS 为MoganSTEM-v<ver>-arm.pkg。