Release process¶
Releases are published as GitHub Releases; OctoPrint's software-update hook
points users at releases/latest.
Versioning¶
The project follows SemVer. The version is derived at
build time (octoprint_bambucam/_version.py) and surfaced through
get_update_information() as displayVersion.
Steps¶
- Land all changes on
mainwith green CI. - Move the
CHANGELOG.mdUnreleased entries under the new version heading. - Tag the release:
git tag v0.1.0
git push origin v0.1.0
- The
releaseworkflow (.github/workflows/release.yml) builds the wheel and sdist and attaches them to the GitHub Release, plus a versioned source zip (OctoPrint-BambuCam-<version>.zip) and a stableOctoPrint-BambuCam-latest.zip. - The workflow creates the release as a draft. Review the notes and the
attached artifacts, then publish it by hand (
gh release edit <tag> --draft=falseor the Publish release button).
A draft is invisible to users
releases/latest skips drafts, so the Plugin Manager install URL keeps
serving the previous version until the draft is published. A tag alone
ships nothing โ step 5 is what releases.
Release notes¶
The workflow asks GitHub to generate the notes, which groups merged pull
requests by label. The categories live in .github/release.yml:
| Section | Labels |
|---|---|
| โ ๏ธ Breaking Changes | breaking, breaking-change |
| ๐ Security | security |
| โจ New Features | enhancement, feature |
| ๐ Bug Fixes | bug, fix |
| โก Performance | performance |
| โป๏ธ Refactoring | refactor |
| ๐ Documentation | documentation |
| ๐งช Tests | test |
| ๐ฆ Dependencies | dependencies, depfu |
| ๐ง CI / Tooling | ci, tooling, chore, github_actions |
| ๐งฉ Other Changes | anything else |
A PR lands in the first matching section, so the order above is a priority
rule: one labelled both bug and enhancement appears under New Features
only, never twice. Put the label that should win further up โ or re-order the
file.
skip-changelog leaves a PR out of the notes entirely.
Label every PR before merging. An unlabelled one still shows up, but under Other Changes rather than where it belongs.
Update artifact¶
The software-update hook installs from:
https://github.com/Ajimaru/OctoPrint-BambuCam/archive/{target_version}.zip
and the README points the Plugin Manager at:
https://github.com/Ajimaru/OctoPrint-BambuCam/releases/latest/download/OctoPrint-BambuCam-latest.zip
The Plugin Manager installs a source zip, not a wheel โ a wheel filename is
parsed by pip ({name}-{version}-{pytag}-{abitag}-{platformtag}.whl) and a
renamed/aliased wheel is rejected with "Invalid wheel filename". A zip has no
such constraint, so the workflow publishes OctoPrint-BambuCam-latest.zip to
keep the releases/latest install URL working. The wheel is still attached
under its original PEP 427 name for direct pip install.