name: pypi build

on:
   push:
     tags:
       - 'v*'

jobs:
  build-n-publish:
    name: pypi build
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: 3.9
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        python -m pip install pytest wheel twine
        pip install -r requirements.txt
    - name: Build distribution
      run: |
        python setup.py sdist bdist_wheel
    - name: Publish on PyPI
      uses: pypa/gh-action-pypi-publish@release/v1
      with:
        user: __token__
        password: ${{ secrets.PYPI_API_TOKEN }}

Add pypi deploy Github Actions workflow
Add pypi deploy Github Actions workflow

