Skip to content

0.3.2

0.3.2 #7

Workflow file for this run

name: Deploy to PyPI
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
env:
POETRY_VIRTUALENVS_CREATE: "false"
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: |
pipx install poetry
pipx inject poetry .
# NOTE: Instead of above step use the following in your workflow
# - name: Install poetry
# run: |
# pipx install poetry
# poetry self add poetry-bumpversion
- name: Build
run: |
poetry version ${{ github.ref_name }}
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# NOTE: Checkout pypa/gh-action-pypi-publish GitHub action to configure trusted publisher
# or other ways to authenticate with PyPI