feat: APT 源聚合 mcpc/oapi,新增手动 republish workflow - #91
Merged
Conversation
- scripts/build-apt-repo.sh → scripts/apt/build-apt-repo.sh,收集全部
*_{amd64,arm64}.deb(不再限定 bash-agent_*)
- 新增 scripts/apt/fetch-debs.sh:从 lloydzhou/{bash-agent,mcpc,oapi}
最新 release 下载 deb;任一仓库缺 deb 资产即中止,防止发布缺包的源
- ci.yml release job:建源前先 fetch mcpc/oapi deb(bash-agent 用本地
刚构建产物,避免 latest API 延迟导致版本回退)
- 新增 .github/workflows/apt-republish.yml:仅 workflow_dispatch,聚合
三仓库全量重建源并部署 Pages,mcpc/oapi 发版后手动跑一次即刷新
This was referenced Sep 11, 2026
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.
概述
APT 源(
lloydzhou.github.io/bash-agent/debian)从单包(bash-agent)升级为聚合三仓库:bash-agent + mcpc + oapi。源地址不变,已配置的老机器零感知,apt install mcpc oapi直接可用。改动
scripts/apt/build-apt-repo.shscripts/build-apt-repo.sh\} 迁移;deb 收集从bash-agent__{amd64,arm64}.deb泛化为_{amd64,arm64}.deb`scripts/apt/fetch-debs.shlloydzhou/{bash-agent,mcpc,oapi}最新 release 下载 deb(公开仓库匿名 API 即可,无需 PAT);支持显式传仓库列表;任一仓库缺 deb 资产即报错中止,防止发布缺包的源.github/workflows/ci.ymlfetch-debs.sh dist lloydzhou/mcpc lloydzhou/oapi(bash-agent 用本地刚构建的 deb,避免 latest API 延迟导致版本回退).github/workflows/apt-republish.ymlworkflow_dispatch:聚合三仓库 → 全量重建源(GPG 签名沿用现有 secrets)→ 部署 Pages。mcpc/oapi发新版后手动跑一次即刷新源内对应包设计要点
group: pages:与 release job 的 Pages 部署互斥排队依赖
mcpc / oapi 侧需先合入各自 deb 打包 PR 并发 v0.1.1(deb 加入 release assets),否则
fetch-debs.sh会按设计中止。本地验证
fetch-debs.sh .apt-test lloydzhou/bash-agent:成功下载 4.3.7 双架构 debfetch-debs.sh对无 deb 资产的 mcpc:正确报错退出(exit 1)build-apt-repo.sh用真实 bash-agent deb 干跑:Packages/Release/pool/cnf 结构与线上源一致