name: Publish Tags on PyPi when GitHub creates a release
on:
  push:
    tags:
      - 'v**'
jobs:
  publish:
    runs-on: ubuntu-latest
      fail-fast: false
      python-version: 3.9
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install upload dependencies
      run: |
        python -m pip install --upgrade pip setuptools wheel twine
    - name: Build and publish
      env:
        TWINE_USERNAME: __token__
        TWINE_PASSWORD: ${{ secrets.pypi_password }}
      run: |
        python setup.py sdist bdist_wheel
        twine upload dist/*

Add auto publish to pypi when pushing a new tag.
Add auto publish to pypi when pushing a new tag.
