Skip to main content

Releases

This template ships automated GitHub Releases: STL and PNG assets for every @artifact, plus a generated release body. The flow is driven by release-please and Conventional Commits on main.

Prerequisites: create and initialize your repo first, then complete Set up GitHub for your repository. Workflow permissions and squash merge are required before release-please can open Release PRs or publish assets.

How it works​

StepWhat happens
1You merge feature/fix PRs to main with squash titles like feat(sphere): add label
2release-please.yml opens or updates a Release PR (chore: release 0.2.0)
3You review the Release PR (version bump in pyproject.toml, CHANGELOG.md) and merge it
4The squash subject chore: release X.Y.Z triggers export + cad_tooling release notes + GitHub Release upload

Version tracking: release-please-config.json and .release-please-manifest.json (reset to 0.0.0 by just init).

First release on a new repository​

After creating and initializing your repo and completing GitHub setup:

  1. Confirm Actions settings — Settings → Actions → General: Read and write permissions and Allow GitHub Actions to create and approve pull requests (see workflow permissions).
  2. Merge a releasable change — open a PR with a Conventional Commit squash title, e.g. feat: initial customization, and merge to main.
  3. Wait for release-please — within a few minutes, a Release PR should appear (title chore: release 0.2.0 or similar). If it does not, see Release troubleshooting.
  4. Merge the Release PR — use the default squash title (chore: release X.Y.Z); do not edit it.
  5. Verify the GitHub Release — Repository → Releases → new tag vX.Y.Z with dist/*.stl, dist/*.png, and generated notes.

You do not need repository secrets — workflows use GITHUB_TOKEN.

Day-to-day versioning​

Squash PR title prefixRelease impact
feat:Minor semver bump
fix:Patch bump
feat!: / fix!: / BREAKING-CHANGE: footerMajor bump
docs:, deps:Releasable (Python release-type)
chore:, ci:, test:No changelog entry on their own

The PR title becomes the squash commit subject on main — that is what release-please parses. Full commit guide: Releases workflow and AGENTS.md.

What gets published​

Release PR merge (release-please.yml):

  1. Tag + GitHub Release — release-please creates the tag and changelog body
  2. Export — release-assets.yml exports @artifact models with @render as STL + PNG
  3. Upload — assets attached; artifact notes appended via cad_tooling.export release-notes

Manual tag push or workflow_dispatch repair (release.yml):

  1. Quality gate — Dagger check (ruff, mypy, vulture, artifact export verification, pytest)
  2. Export — @artifact models that declare @render as STL + PNG
  3. GitHub Release — assets attached; body from cad_tooling.export release-notes

Release notes template: .github/release_template.md.

Local dry-run​

just release-notes reads owner/repo from template.repo.toml — set that file first (see Replace the template identity).

just export
just release-notes v0.1.0

Override the repo slug explicitly: just release-notes v0.1.0 repo=USERNAME/my-widget

Inspect dist/ for STL/PNG and dist/RELEASE_BODY.md before trusting CI/CD pipeline output.

Manual tag fallback​

If you need a release without a Release PR:

just version-bump # optional — bumps pyproject.toml locally
just version-tag # creates and pushes v{version}

Pushing a strict semver tag (v1.2.3 only — no suffixes) runs release.yml. Prefer the release-please path for changelog discipline.

Single publish path​

StepWorkflowWhat it does
Day-to-day mergesrelease-please.ymlOpens/updates Release PRs
Merge Release PRrelease-please.ymlCreates git tag, GitHub Release, exports STL/PNG, uploads assets
Tag push vX.Y.Zrelease.ymlManual fallback: quality gate → export STL/PNG → upload assets
Repair missing assetsrelease.yml → Run workflowworkflow_dispatch with tag name (for example v0.3.0)

Do not run gh release create for normal releases — that bypasses export and can duplicate tags. Use gh release list / gh release view to inspect only.

GitHub CLI​

The dev container ships gh — see Dev container → GitHub CLI for authentication:

gh release list --repo OWNER/REPO
gh release view v0.1.0 --repo OWNER/REPO

Fork vs your own repo​

ScenarioRelease automation
Use this template → new repositoryFollow this page and GitHub setup
Fork to contribute upstreamUsually disable or ignore release-please on your fork; open PRs to the upstream repo instead
Fork as a starting point for a separate productTreat like a template: rename/customize, then configure GitHub settings on your fork

Troubleshooting​

See Release Please & GitHub Releases troubleshooting for symptom-by-symptom fixes (missing STL/PNG assets, stale autorelease labels, untagged merges, workflow parse errors, and repair via workflow_dispatch).

Quick checks:

SymptomFirst step
No Release PRWorkflow permissions
Release without assetsRelease workflow → workflow_dispatch with tag vX.Y.Z
Export fails in CIjust export-smoke locally → Export troubleshooting

More detail: Releases workflow · GitHub setup.