PyPi Publish¶
Publish a package to PyPi using PDM.
You must use PDM for your package management for this workflow to function.
Inputs¶
No inputs.
Outputs¶
No outputs.
Secrets¶
SECRET | REQUIRED | DESCRIPTION |
---|---|---|
PYPI_TOKEN | true | The PyPi.org API token for your project. |
Example Usage¶
name: Publish to PyPi.org
on:
release:
types: [published]
# Allow manual trigger (workflow_dispatch)
workflow_dispatch:
jobs:
publish_to_pypi:
uses: hotosm/gh-workflows/.github/workflows/pypi_publish.yml@main
secrets:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}