v1.1.0 #9
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: PyPI publish | |
# Publish to PyPi once a maintainer creates a release | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
if: startsWith(github.event.release.tag_name, 'v') && github.event.release.prerelease == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
cache: "poetry" | |
- name: Bump version number | |
run: poetry version ${{ github.event.release.tag_name }} | |
- name: Build and publish to PyPi | |
run: | | |
poetry build | |
poetry publish -u __token__ -p ${{ secrets.PYPI_API_TOKEN_LIMINAL }} --skip-existing |