Skip to content

Support pydantic v2 #10

Support pydantic v2

Support pydantic v2 #10

Workflow file for this run

name: PyPI
on:
push:
branches:
- "**"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
env:
PUBLISH_TO_PYPI: true
jobs:
pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get Python Version from File
id: python_version
run: echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT
- uses: actions/setup-python@v4
with:
python-version: ${{ steps.python_version.outputs.version }}
- name: Install Dependencies
run: make install
- name: Build Wheel
run: make build
# This will only run on Tags
- name: Publish package
if: ${{ env.PUBLISH_TO_PYPI == 'true' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')}}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_PUBLISH_API_KEY }}