Skip to content

ci: add release-publish workflow (PyPI OIDC + conda + GitHub release)#7

Merged
markgeejw merged 1 commit into
mainfrom
ci/add-release-publish-workflow
Jul 14, 2026
Merged

ci: add release-publish workflow (PyPI OIDC + conda + GitHub release)#7
markgeejw merged 1 commit into
mainfrom
ci/add-release-publish-workflow

Conversation

@markgeejw

@markgeejw markgeejw commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Adds the release-publish workflow.

Triggered by merging a pull request labeled release. On merge it:

  • reads the version from .release-please-manifest.json and creates + pushes the vX.Y.Z tag (so hatch-vcs derives the version),
  • build — sets up conda (conda-build + anaconda-client) + hatch; hatch build (wheel/sdist) and hatch build -t conda,
  • pypi — publishes wheel + sdist via OIDC trusted publishing (no token),
  • condaanaconda upload to anaconda.org,
  • github-release — GitHub release with all three assets + compare-link changelog.

Config: PyPI trusted publisher (repo + workflow release-publish.yml); secret ANACONDA_TOKEN + variable ANACONDA_OWNER.

@markgeejw markgeejw force-pushed the ci/add-release-publish-workflow branch from b534d08 to 3d05a59 Compare July 14, 2026 16:37
Triggered by merging a pull request labeled release. Reads the version from
.release-please-manifest.json, creates + pushes the tag, builds the wheel +
sdist + conda package, publishes to PyPI via OIDC trusted publishing, uploads
the conda package to anaconda.org, and cuts the GitHub release with all three
assets.
@markgeejw markgeejw force-pushed the ci/add-release-publish-workflow branch from 3d05a59 to d5b9b93 Compare July 14, 2026 16:55
@markgeejw markgeejw merged commit 657a6d3 into main Jul 14, 2026
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