Repository navigation
Conversation
- 新增 publish-market 任务:需要 publish 成功,单独持有 id-token 权限(不与签名私钥同一个 job), 环境 market;每个包单独申请 OIDC 令牌后上传到商店 /api/uploads/trusted,版本说明取 Release 正文 - 202 视为成功,409(该版本已发布,重跑同一标签时)视为成功并跳过;其余失败逐个记下、全部跑完后整体判红 - 仓库变量 MARKET_TRUSTED_PUBLISHING=true 才运行,未设置时跳过,不影响 Release 资产; 可选变量 MARKET_URL、MARKET_OIDC_AUDIENCE - README 新增「推进插件商店」一节
This was referenced Nov 17, 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.
主要改动
发版后自动把
.vpx推进插件商店,不再手动上传。用商店新增的可信发布(GitHub Actions OIDC):本仓库不存任何商店密钥。release.yml新增publish-market任务:needs: publish,取 publish 挂上 Release 的同一批.vpx(经 artifact 传递,签名已核对过);id-token: write,不与持有签名私钥的 publish job 混在一起;environment: market,令牌带上 environment 声明,商店登记了环境就只认这里来的运行;gh release view,workflow_dispatch补跑也拿得到);MARKET_TRUSTED_PUBLISHING=true才启用,未设置时跳过,Release 资产不受影响。可选变量MARKET_URL(默认https://market.easilynet.top)、MARKET_OIDC_AUDIENCE(默认velashell-market)。dryRun时同样跳过。启用步骤(合并之后)
TRUSTED_PUBLISHING=true;VelaShellLabs/velashell-plugins、工作流release.yml、环境market,勾上全部插件;market:Deployment branches and tags 添加标签规则[0-9]*.[0-9]*.[0-9]*(本仓库标签不带v,如2.1.9;写成v*会挡住所有发版);MARKET_TRUSTED_PUBLISHING=true。验证
release.yml:三个 job,publish-market依赖publish,权限只有id-token: write+contents: read;步骤脚本bash -n通过。文档
涉及文档修改。
README.md「推进插件商店」。templates/publishing.md§5.4)。