Skip to content

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

  1. Land all changes on main with green CI.
  2. Move the CHANGELOG.md Unreleased entries under the new version heading.
  3. Tag the release:
git tag v0.1.0
git push origin v0.1.0
  1. The release workflow (.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 stable OctoPrint-BambuCam-latest.zip.
  2. 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=false or 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.