v0.2 #2
Workflow file for this run
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: Publish to PYPI | |
on: | |
release: | |
types: [published] | |
jobs: | |
build-n-publish: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/setup-python@v2 | |
- run: pip install poetry | |
- run: poetry version ${GITHUB_REF:10} | |
- run: poetry build | |
- run: pip install twine==4.0.1 | |
- run: twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} | |
- uses: EndBug/[email protected] | |
with: | |
author_name: github-actions | |
author_email: 41898282+github-actions[bot]@users.noreply.github.com | |
add: pyproject.toml | |
branch: main | |
message: Published new version |