name: pypi

on:
  release:
    types: [published]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1

    - name: Set up Python
      uses: actions/setup-python@v1

    - name: Install dependencies
      run: |
        pip3 install .
        pip3 install setuptools wheel

    - name: Build package
      run: python3 setup.py bdist_wheel

    - name: Publish package
      uses: pypa/gh-action-pypi-publish@master
      with:
        user: __token__
        password: ${{ secrets.pypi_password }}

Use GitHub Actions to upload packages to PyPI
Use GitHub Actions to upload packages to PyPI
