Skip to content

Build and publish to PyPI for PEP 518 compliant projects (flit, poetry, setup.py,...).

License

Notifications You must be signed in to change notification settings

etils-actions/pypi-build-publish

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.