Releases
Start with Releases in Getting started for the first-release checklist and GitHub prerequisites, then return here for reference detail.
release-please flow
- Merge PRs to
mainwith Conventional Commit squash titles (feat:,fix:,docs:,deps:) release-please.ymlopens or updates a Release PR (chore: release X.Y.Z)- Merge the Release PR →
release-please.ymlcreates the tag and GitHub Release, then exports STL/PNG assets in the same workflow run
Config: release-please-config.json (release-type: python).
Set up GitHub first
Before release-please can open Release PRs, configure workflow permissions, squash merge, and branch protection on GitHub.com:
- Set up GitHub for your repository — full checklist for template clones
- Releases (getting started) — first release walkthrough
Conventional Commits (summary)
| Prefix | Release impact |
|---|---|
feat: | Minor bump |
fix: | Patch bump |
feat!: / fix!: / BREAKING-CHANGE: | Major bump |
docs:, deps: | Releasable (Python strategy) |
chore:, ci:, test: | No Release PR entry on their own |
Squash-merge PRs — the PR title becomes the changelog entry release-please parses.
Version commands
| Command | Purpose |
|---|---|
just version-bump | Local patch bump (uv version --bump) |
just version-bump minor | Local minor bump |
just version-tag | Manual tag push (triggers release.yml) |
Version lives in pyproject.toml; tags use v prefix (0.1.1 → v0.1.1).
What gets published
Release PR merge — tag, changelog release, then release-assets.yml export/upload (no Dagger check in that workflow; ci.yml already ran on the PR).
Manual tag or repair — Dagger check, then the same export/upload job:
- Quality gate — Dagger
check(lint, artifact export verification, pytest) - Export —
@artifactmodels that declare@renderas STL + PNG - GitHub Release —
dist/*.stl,dist/*.png; artifact notes appended to the release body
Release notes format: .github/release_template.md
Local dry-run
Set template.repo.toml first, then:
just release dist/
just release-notes v0.1.0
Or with explicit repo slug:
uv run python -m cad_tooling.export release -o dist/
uv run python -m cad_tooling.export release-notes \
--assets-dir dist \
--repo YOUR_ORG/YOUR_REPO \
--tag v0.1.0 \
-o dist/RELEASE_BODY.md
Manual tag fallback
just version-tag or push a strict semver tag (vX.Y.Z only) triggers release.yml. Tags with suffixes (for example v0.1.0-test) are ignored by the publish job.
Publish flow
release-please.yml— Release PRs; on merge, git tag, GitHub Release, and STL/PNG export/upload (release-assets.yml)release.yml— manual semver tag push orworkflow_dispatchrepair: quality gate, then the same asset publish job
Release-please creates tags through the GitHub API, which does not emit a tag push event. Asset publishing must run inside release-please.yml (or via workflow_dispatch on release.yml), not rely on tag push alone.
Do not use gh release create for normal publishes. Release assets should come from the configured CI/CD pipeline so exports stay reproducible.
Troubleshooting: Release Please & GitHub Releases — missing assets, untagged merges, workflow errors, and workflow_dispatch repair.
Release note URLs
Use absolute releases/download/{tag}/ URLs — see Release notes.
Force a specific version: empty commit with Release-As: x.y.z in body (release-please docs).