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 tag is pushed to the
mainbranch, I run the.github/workflows/ci.ymlworkflow. - 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-publishjob downloads the artifact and publishes it using theypa/gh-action-pypi-publishaction.