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:
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.ymlworkflow calls.github/workflows/ci.ymlwith 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-publishjob downloads the artifact and publishes it using thepypa/gh-action-pypi-publishaction.