Skip to content

ci: release with changie and changie-release-action v2 - #27

Merged
mvantellingen merged 1 commit into
masterfrom
ci/changie-release-v2
Oct 27, 2026
Merged

mvantellingen merged 1 commit into
masterfrom
ci/changie-release-v2

Conversation

@mvantellingen

Copy link
Copy Markdown
Member

Move the existing changie setup to labd/changie-release-action v2.0.0.

  • release job in test.yml (push to master only, after the tests): maintains a changie-release/master release PR; once merged it tags the version and creates the GitHub release (create-release: true) with the release app token. uv lock runs as version-command. Replaces the manual prepare-release.yml.
  • python-release.yml (the PyPI trusted publisher, environment pypi) now runs on release: created instead of on pushes that touch CHANGELOG.md. It checks the tag matches the package version, builds, publishes to PyPI, uploads the dist files and SBOMs to the release and sends the SBOM to DependencyTrack as before. Workflow file and environment are unchanged, so nothing changes on pypi.org.
  • .changie.yaml: adds the Dependency kind (patch); the existing replacements already cover pyproject.toml and the VERSION tuple in __init__.py.
  • dependabot-changie.yaml adds a Dependency entry to Dependabot PRs.
  • Tags keep the existing X.Y.Z format.

Verified locally: changie batch auto --dry-run → 3.0.0 (from the pending removed fragment); a simulated bump updates pyproject.toml, __init__.py and uv.lock, uv lock --check passes; ruff and tests pass.

Replace the manual prepare-release workflow with a release job in the test workflow. It maintains a release PR and, once merged, tags the version and creates the GitHub release with the release app token.

python-release.yml (the PyPI trusted publisher) now runs on that release instead of on CHANGELOG.md pushes: it builds, publishes to PyPI, attaches the dist files and SBOMs to the release and uploads the SBOM to DependencyTrack, as before.
@mvantellingen
mvantellingen merged commit e525e8d into master Oct 27, 2026
13 checks passed
@mvantellingen
mvantellingen deleted the ci/changie-release-v2 branch October 27, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant