Skip to content

Support Python >=3.8 and upgrade Pydantic to v2 #7

Support Python >=3.8 and upgrade Pydantic to v2

Support Python >=3.8 and upgrade Pydantic to v2 #7

Workflow file for this run

name: Publish to PyPI
on:
release:
types:
- created
jobs:
build-n-publish:
name: Build and publish Python distribution to PyPI
runs-on: ubuntu-latest
steps:
- name: Check out git repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: "1.4"
- name: Build and publish to PYPI
run: |
poetry publish --build
env:
GITHUB: 1
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}