Upload release to PyPI #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload release to PyPI | |
on: | |
workflow_dispatch: | |
jobs: | |
pypi-publish: | |
name: Upload release to PyPI | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
id-token: write | |
contents: write | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version: ">=3.12" | |
- run: | | |
pip install -r requirements-poetry.txt | |
git tag $(poetry version --short) | |
git push origin $(poetry version --short) | |
poetry self add poetry-version-plugin | |
poetry install --sync | |
poetry build | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |