Skip to content

Build and Publish to PyPI

Actions
Build and publish to PyPI for PEP 518 compliant projects (flit, poetry,...)
v1.1.0
Latest
Star (2)

Github Action: pypi-build-publish

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 (or setup.py) in the top-level directory (otherwise set path: "./path/to/project/").
  • Python and pip are installed (e.g. by actions/setup-python@v2).

Inputs

  • pypi-token: (required) The PyPI API token to use.
  • path: (optional) Directory of the project (containing the pyproject.toml). Default to root directory.

Outputs

None.

Build and Publish to PyPI is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Build and publish to PyPI for PEP 518 compliant projects (flit, poetry,...)
v1.1.0
Latest

Build and Publish to PyPI is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.