Skip to content

feat(release): publish sdist + wheel to PyPI on tag push#6

Merged
Sodawyx merged 1 commit intomainfrom
feat/pypi-release
Apr 22, 2026
Merged

feat(release): publish sdist + wheel to PyPI on tag push#6
Sodawyx merged 1 commit intomainfrom
feat/pypi-release

Conversation

@Sodawyx
Copy link
Copy Markdown
Contributor

@Sodawyx Sodawyx commented Apr 22, 2026

Adds two jobs to the release workflow so every v* tag also lands the package on PyPI alongside the binary GitHub Release:

  • build-dist: builds sdist + wheel with python -m build, verifies the tag version appears in the filenames, and runs twine check before uploading as an artifact.
  • publish-pypi: gated by the pypi GitHub environment; downloads the artifact and uploads via pypa/gh-action-pypi-publish using the PYPI_API_TOKEN repository secret.

The existing release job now filters downloaded artifacts to agentrun-* so it doesn't pick up python-dist.

Setup required once per repo:

  • Create a PyPI project-scoped API token for agentrun-cli and add it as the PYPI_API_TOKEN Actions secret.
  • (Optional, recommended) Configure the pypi environment with required reviewers so every publish needs manual approval.

Adds two jobs to the release workflow so every v* tag also lands the
package on PyPI alongside the binary GitHub Release:

  - build-dist: builds sdist + wheel with `python -m build`, verifies
    the tag version appears in the filenames, and runs `twine check`
    before uploading as an artifact.
  - publish-pypi: gated by the `pypi` GitHub environment; downloads
    the artifact and uploads via pypa/gh-action-pypi-publish using the
    PYPI_API_TOKEN repository secret.

The existing `release` job now filters downloaded artifacts to
`agentrun-*` so it doesn't pick up python-dist.

Setup required once per repo:
  - Create a PyPI project-scoped API token for `agentrun-cli` and add
    it as the `PYPI_API_TOKEN` Actions secret.
  - (Optional, recommended) Configure the `pypi` environment with
    required reviewers so every publish needs manual approval.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Sodawyx Sodawyx merged commit b01c4f9 into main Apr 22, 2026
15 checks passed
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