docs(publish): define a release and the publish-to-git flow
A release happens when the code is finished, usable, and ready to ship — it is not a commit. When the publish destination is Git, the flow is: commit the finished code, then open a release for it. The release artifact may be produced by the CI/CD pipeline (recommended, tag-triggered via build-firmware.yml) or it may be a local .bin the developer already built. Added an explicit 'neither yet' route when the code is still in development. Documented in publish-to-community in both languages.
This commit is contained in:
1 parent
53a52ef000
commit
273e4e8def
2 files changed
+8
-15
No files matched your search
@@ -8,17 +8,13 @@ This document describes how to publish this project's firmware to the [AI Passpo
|
||||
|
||||
## When to use this
|
||||
|
||||
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.
|
||||
Use this when the project is being **released** — that is, when the code is finished, usable, and ready to ship. A release is not a commit: a commit saves progress during development, while a release happens only when development is complete and the firmware actually works. This page covers the publish decision; for development itself, see the development and commit rules.
|
||||
|
||||
### First confirm where to publish
|
||||
|
||||
When the developer says "publish the project", ask **where** they want to
|
||||
publish before doing anything:
|
||||
When the developer says "publish" or "release", the first thing to decide is **where** to publish. Do not assume a route.
|
||||
|
||||
- **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.
|
||||
- **To Git** — publish the finished code to a version-controlled repository. The flow is: commit the finished code, then open a release for it. The release artifact may be produced by the CI/CD pipeline (**recommended**, tag-triggered via `.github/workflows/build-firmware.yml`), or it may be a local `.bin` the developer already built. Follow the repository commit and PR rules (`docs/contribution/commit-and-pr.md`) and the fork workflow (`docs/fork-guide.md`); see [`CI-build-and-release.md`](CI-build-and-release.md) for the automated build and release artifacts.
|
||||
- **Neither yet** — the code is not finished and usable; keep developing, do not publish.
|
||||
|
||||
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.
|
||||
|
||||
|
||||
@@ -8,16 +8,13 @@
|
||||
|
||||
## 何时使用
|
||||
|
||||
当你希望把当前固件(或某个 `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 发布路径。
|
||||
|
||||
不要默认其中一条;先确认目的地,再路由到对应工作流。
|
||||
- **发布到 Git** —— 把开发完成的代码发布到版本仓库。逻辑:先**提交**完成后的代码,再为它**开 release 流程**。release 产物可由 **CI/CD 流水线生成(推荐)**,tag 触发 `.github/workflows/build-firmware.yml` 自动构建;也**可用开发者本地已构建的 `.bin` 文件**。遵循仓库提交与 PR 规则(`docs/contribution/commit-and-pr.md`)与 fork 工作流(`docs/fork-guide.md`);自动构建与产物见 [`CI-build-and-release.md`](CI-build-and-release.md)。
|
||||
- **还没到发布时机** —— 代码尚未开发完成、不能使用;继续开发,不发布。
|
||||
|
||||
该工作流由官方发布 skill 驱动。运行一次提示词,让助手从官方包安装 skill;仓库无需提交任何东西。
|
||||
|
||||
|
||||
Reference in new issue
Block a user