docs(publish): ask where to publish before releasing

Add a "first confirm where to publish" step to the community publishing guide:
when the developer says "publish the project", ask whether to publish to the
community market or to a version-control repository, and route to the matching
workflow instead of assuming one.
This commit is contained in:
Shinku committed 2026-08-27 02:53:07 +08:00
1 parent 9281f81745
commit 21edbad877
2 files changed
+19

No files matched your search

+10
View File
@@ -10,6 +10,16 @@ This document describes how to publish this project's firmware to the [AI Passpo
Use this when you want to release the current firmware (or a specific `demo/*` application) to the community market. It is not for ordinary firmware development or flashing.
### First confirm where to publish
When the developer says "publish the project", ask **where** they want to
publish before doing anything:
- **To the community** — release the firmware to the [AI Passport Community market](https://ai-passport.folotoy.cn). Use the publisher workflow below. See also the post-release follow-up (`docs/development/after-release.md`) once it is published.
- **To Git** — publish the firmware or code to a version-controlled repository (commit, tag, push, and a GitHub/GitLab release if intended). Follow the repository commit and PR rules (`docs/contribution/commit-and-pr.md`) and the fork workflow (`docs/fork-guide.md`); this page does not cover the Git publishing path.
Do not assume either route; confirm the destination first, then route to the matching workflow.
The workflow is driven by the official publisher skill. Running the prompt once makes the assistant install the skill from the official bundle; nothing is committed into the repository.
## Reproduce the bundled prompt
@@ -10,6 +10,15 @@
当你希望把当前固件(或某个 `demo/*` 应用)发布到社区市场时使用。它不用于普通固件开发或烧录。
### 先确认发布到哪里
当开发者说"发布项目"时,先问清楚**发到哪里**再动手:
- **发布到社区** —— 把固件发布到 [AI Passport 社区市场](https://ai-passport.folotoy.cn)。走下面的 publisher 工作流;发布后见发布后收尾(`docs/development/after-release.md`)。
- **发布到 Git** —— 把固件或代码发布到版本仓库(commit、tag、push,以及如需要则发 GitHub/GitLab release)。遵循仓库提交与 PR 规则(`docs/contribution/commit-and-pr.md`)与 fork 工作流(`docs/fork-guide.md`);本页不覆盖 Git 发布路径。
不要默认其中一条;先确认目的地,再路由到对应工作流。
该工作流由官方发布 skill 驱动。运行一次提示词,让助手从官方包安装 skill;仓库无需提交任何东西。
## 使用内置提示词