code-specialist/PyPI Poetry Publish
Opinionated GitHub action to fully automate publishing packages to any PyPI registry - using Poetry and GitHub releases
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Apr 9, 2023
- License
- MIT
Pinned Snippet
uses: code-specialist/pypi-poetry-publish@ec93221fb6b8d9d7f2e1e4866840a5df2f8588e3 # v1.2tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| ACCESS_TOKEN | Access Token for GitHub with write access on the repository | yes | — |
| PYTHON_VERSION | Python Version | no | 3.10 |
| PACKAGE_DIRECTORY | Directory of the package | no | ./ |
| PUBLISH_REGISTRY_PASSWORD | Password for the user to publish to PyPI. May also be a Token - requires the `PUBLISH_REGISTRY_USERNAME` to be `__token__` | yes | — |
| PUBLISH_REGISTRY_USERNAME | The username for the registry. Defaults to __token__ | no | __token__ |
| POETRY_VERSION | The version of Poetry to use | no | "" |
| POETRY_CORE_VERSION | The version of Poetry Core to use | no | "" |
| BRANCH | Branch to publish from | no | master |
| POETRY_DEPENDENCY_REGISTRY_URL | Allows to define a custom registry to be used by Poetry for dependency installation | no | — |
| POETRY_DEPENDENCY_REGISTRY_NAME | The name used for the custom registry in the dependencies | no | — |
| POETRY_DEPENDENCY_REGISTRY_USERNAME | The username for the custom registry | no | — |
| POETRY_DEPENDENCY_REGISTRY_PASSWORD | The password for the custom registry | no | — |
| POETRY_DEPENDENCY_REGISTRY_AUTH | The authentication type for the custom registry | no | http-basic |
| PUBLISH_REGISTRY | The registry to publish to | no | https://upload.pypi.org/legacy/ |
Outputs
no outputs