Skip to content

v0.19.1

v0.19.1 #11

Workflow file for this run

name: publish
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ vars.PYTHON_VERSION }}
- name: Install build tools
run: |
python -m pip install --upgrade build pip pre-commit setuptools tox twine wheel
- name: Run pre-commit
run: |
pre-commit run --all-files
- name: Run tox tests
run: |
tox
- name: Build and publish Python package
env:
TWINE_REPOSITORY: ${{ secrets.PYPI_REPOSITORY }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python -m build -w
twine check dist/*
twine upload dist/*