Github action to build and publish to PyPI PEP 518 compliant projects (flit, poetry,...).
Usage:
- use: conchylicultor/pypi-build-publish@v1
with:
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
The action assume:
- The project has a
pyproject.toml
(orsetup.py
) in the top-level directory (otherwise setpath: "./path/to/project/"
). - Python and pip are installed (e.g. by
actions/setup-python@v2
).
pypi-token
: (required) The PyPI API token to use.path
: (optional) Directory of the project (containing thepyproject.toml
). Default to root directory.
None.