semantic-poetry is a GitHub Action that automates the release of poetry-based Python packages on GitHub and PyPI following semantic versioning and conventional commits standards.
To use it in your CI:
- Generate a PyPI Token from PyPI: https://pypi.org/help/#apitoken
- Set your PyPI Token as a repository secret named
PYPI_TOKEN
: https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository - For a quick start copy the
[tool.semantic_release]
section of this pyproject.toml and adjust it to your needs. - For advanced semantic-release configurations: https://python-semantic-release.readthedocs.io/en/latest/configuration.html#configuration
Happy hacking 😼
Test runs can be found at https://github.com/matteo4diani/poetry-semantic-release-test/actions, which is a sample poetry-based Python project used to test this action.
This action uses poetry and python-semantic-release.