Skip to content

PyPI

PyPI (Python Package Index) is the official Python package registry.

I use it to publish my Python solutions, so it can be installed via pip (or uv).

Add a new publisher:

PyPI Publisher
PyPI Publisher

My publishing workflow is the following (see it in action in .github/workflows/cd.yml):

  • Every time a GitHub release is published, the .github/workflows/cd.yml workflow calls .github/workflows/ci.yml with the release tag as the package version.
  • This workflow builds the package (using my reusable python-ci GitHub Workflow) and uploads the generated build files as an artifact.
  • Once this job has run successfully, the pypi-publish job downloads the artifact and publishes it using the pypa/gh-action-pypi-publish action.