Add a "Release notes" section to the build-and-release doc: after a release is published, write notes covering what's new, how to build, and how to use, in English (and a Chinese version where the project is bilingual), and link them from the release, keeping them consistent with the changelog.
2.4 KiB
简体中文 · English
Automated Build and Release
.github/workflows/build-firmware.yml builds and publishes firmware for tags and supports manual dispatch. Ordinary branch pushes do not trigger it. Keep this page synchronized with the workflow.
The build job restores ccache, runs ./tools/validate.sh --firmware with ESP-IDF 5.5.3 for ESP32-C3, verifies the bootloader at 0x0, partition table at 0x8000, application at 0x10000, and 8 MB Flash arguments, then uploads FoloToy-AI-Passport-full.bin. A separate least-privilege release job publishes that artifact only for a tag.
All Actions are pinned to full commit SHAs. The build job has contents: read; only the tag release job receives contents: write.
Browser flashing
Open https://ai-passport.folotoy.cn/tools/web-flasher/, connect the USB JTAG/serial device, select the release's merged FoloToy-AI-Passport-full.bin, choose a baud rate such as 460800, and write it from 0x0. The browser performs local writing and verification; it does not upload the firmware file.
For board and flashing details, see the hardware development guide.
Release notes
A tag-triggered release succeeds only when the merged firmware and its release notes travel together. After the release is published, write release notes that explain the build to a user who may not have read the repository. Cover three things:
- What's new: the features, behaviors, or fixes this release adds or changes compared with the previous one. Keep it user-facing, not a commit log.
- How to build: how to produce and verify the merged firmware
(
./tools/validate.sh --firmwareoridf.py build), and the artifact file to flash (FoloToy-AI-Passport-full.binflashed from0x0). - How to use: how to flash the build (the browser flasher above) and the key interactions or hardware requirements of the release.
Write the release notes in English (and a Simplified Chinese version where the
project is bilingual) and link them from the GitHub/GitLab release. Keep them
consistent with docs/CHANGELOG.md for user-visible behavior.
Related documents
- Firmware publishing to the community: publish-to-community.md
- Post-release follow-up: after-release.md