Repository navigation
Releasing
ezexey edited this page Nov 19, 2026
·
1 revision
The release workflow tags and releases a push to main whose version in lbiza/pyproject.toml has no tag yet.
A push that leaves the version as it is releases nothing.
- Each release holds the sdist and the wheel built from
lbiza/, under the tagv<version>. - Each release also pushes an image with the wheel installed on torch's CPU-only wheels, as
ghcr.io/ezexe/phi:<version>andghcr.io/ezexe/phi:latest, built bylbiza/Dockerfile, whose entry point is thephi-prunecommand.
Raise version in three places, which lbiza/tests/test_packaging.py holds equal, and push to main:
lbiza/pyproject.tomllbiza/phi_prune/__init__.pyCITATION.cff
- It reads the version of
lbiza/pyproject.tomland looks for the tagv<version>, and nothing more runs when the tag exists. - It runs the tests workflow.
- It builds the sdist and the wheel from
lbiza/. - It builds the image from the wheel, runs it once and pushes it to
ghcr.io/ezexe/phi. - It tags the commit and makes the GitHub release that holds both files.
The image is pushed before the tag is made, so a release whose image fails to build or to run leaves no tag behind.
The workflow's pypi job uploads the same two files to PyPI as the project phi-prune, by trusted publishing, with no token kept in the repository.
It runs once the repository variable PYPI_PUBLISH is true.
It needs a trusted publisher on PyPI for the project phi-prune that names the owner ezexe, the repository phi, the workflow release.yml and the environment pypi.