Repository navigation
ci(repo): 添加 PR 检查与 tag 发布工作流 - #5
Merged
Merged
Conversation
优先级:release-notes/<tag>.md 手写公告 → AI 双语草稿(复用 OPENAI_API_BASE/OPENAI_KEY,可用 RELEASE_NOTES_MODEL 或手动触发参数覆盖模型)→ GitHub 自动汇总兜底。公告内容同时作为 workflow 产物保存,方便发布前核对。
GitHub Actions 的 Windows runner 没有 GPU/OpenGL 驱动,无法创建 GL 上下文;该测试改为在上下文不可用时跳过,本地有显卡的机器仍会执行。
公告草稿改走 DeepSeek 官方 API(DEEPSEEK_API_KEY),默认关闭思考模式(thinking disabled、reasoning_effort none)以保证快速稳定;模型可用仓库变量 RELEASE_NOTES_MODEL 或手动触发参数覆盖。AI 不可用时仍回退到 GitHub 自动汇总。
默认开启 DeepSeek 思考模式(thinking enabled + reasoning_effort high)以提升公告质量;可用仓库变量 RELEASE_NOTES_EFFORT 或手动触发参数覆盖(none 会关闭思考)。
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.
为仓库配置 CI/CD(PR 到 main 做检查;推送新版本 tag 时自动打包发布)。
新增内容
.github/workflows/ci.yml— PR 检查:在windows-latest上运行:composeApp:desktopTest、:composeApp:testDebugUnitTest,并额外构建一次 Release APK(PR 环境无签名,产物为未签名版本,用于提前暴露 R8 / 资源收缩问题)。.github/workflows/release.yml— tag 发布:推送vX.Y.Ztag 后自动完成gradle/libs.versions.toml、installer/VRCMC.iss、AppUpdate.kt);assembleRelease);createReleaseDistributable)→ 调用 Inno Setup 生成安装包;release-notes/<tag>.md手写公告 → DeepSeek 双语草稿 → GitHub 自动汇总兜底;--clobber更新附件,保留已有公告)。workflow_dispatch手动重跑指定 tag(可选预发布标记、可指定模型与思考强度);生成的公告同时作为 workflow 产物(release-notes-body.md)保存。DeepSeek 公告草稿
DEEPSEEK_API_KEY,API 为https://api.deepseek.com,默认模型deepseek-flash(可用仓库变量RELEASE_NOTES_MODEL或手动触发参数覆盖)。high(可用仓库变量RELEASE_NOTES_EFFORT或手动触发参数改为none/low/high/max,none会关闭思考)。测试说明
SteamVrOverlayTextureTest在无法创建 OpenGL 上下文时跳过(本地有显卡仍会执行)。:composeApp:desktopTest、:composeApp:testDebugUnitTest、:composeApp:assembleRelease全部通过;两个 workflow 通过 actionlint;公告生成的手写 / AI(含档位切换)/ 回退路径均完成干跑验证。DEEPSEEK_API_KEY(原有OPENAI_*保持不动,PR Agent 仍在用)。以后的发布方式
版本号改好并提交后推送
vX.Y.Ztag 即可自动打包发布;本地scripts/release.ps1仍可用,但两种方式建议二选一,避免同一版本重复构建。