将 PR #25 的 5 个增强并入 project-completion 的动作文档,保持新版约定一致: - 动作 D(归档到 plays):改为纯文本归档。不再提交封面图,封面按文件名 与格式记录在发布元数据里;档案 text-only。 - 动作 E(更新根 README):README 更新为必须(无论是否归档);明确宿主 feature 分支 + fork main 两处各自处理;fork main 根 README 为项目目录, 完整包含项目 README 内容;README 为 fork 独有内容,直接 merge 不另开 PR。 - 动作 B(发布到 Git):补编译偏好——日常用 idf.py build,发布/交付前 需合并校验的 0x0 全镜像才用 validate.sh --firmware。
2.5 KiB
2.5 KiB
简体中文 · English
Action B: Publish to Git and Update the Release
This action publishes the firmware or code to a version-controlled repository and, when intended, updates the GitHub/GitLab release. It is one of the six optional closing actions listed in the project completion.
This is the Git publishing path, not the community path. Confirm the destination first; see publish-to-community.md for the community market.
Steps
- Commit the change and push it to the fork (
origin). - Create and push a tag to trigger the release workflow.
- Let the tagged build produce the merged firmware
.bin. - Create or update the GitHub/GitLab release with the artifact. The workflow sets the default release title to the version/tag name; after the release is up, refine it to the project feature name plus the version number.
- Write release notes in English (and a Simplified Chinese version where the project is bilingual) covering what is new, how to build, and how to use.
Rules
- Follow the repository commit and pull-request rules (commit-and-pr.md).
- Follow the fork workflow (fork-guide.md).
- A tag-triggered build runs
build-firmware.yml, which publishes the release only for a tag. See CI-build-and-release.md. - For day-to-day compilation prefer
idf.py build(fast, incremental); use./tools/validate.sh --firmwareonly when the merged, byte-verified0x0full image is needed, such as before a release or delivery. - The workflow creates the release with a default title of the version/tag name
(from
softprops/action-gh-releaseandgithub.ref_name). After the release is published, refine the title to the project feature name plus the version number — for exampleVoice Keychain v1.2.0. The version is the tag, and the feature name is the application's publish name from the shared publish profile. - Release notes must explain the build to a user who has not read the repository: what is new, how to build, and how to use.
Related documents
- Tagged firmware builds and releases: CI-build-and-release.md
- Commit and pull-request rules: commit-and-pr.md
- Fork workflow: fork-guide.md