proper enum schema for pydantic #1033
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: Release | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
packaging: | |
name: Distribution | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install poetry | |
run: python -m pip install poetry | |
- name: Build package | |
run: poetry build | |
- name: Publish package to PyPI | |
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | |
env: | |
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.pypi }} | |
run: poetry publish -n |