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 tag is pushed to the main branch, I run the .github/workflows/ci.yml workflow.
  • This workflow builds the package (using my reusable python-ci GitHub Workflow) and uploads the generated build files as an artifact.
  • Once this job ran successfully, the pypi-publish job downloads the artifact and publishes it using the ypa/gh-action-pypi-publish action.