name: Publish DBUtils on PyPI

on:
  push:
    tags:
      - 'Release-*'

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python: [2.7, 3.9]

    steps:
    - uses: actions/checkout@v2

    - name: Set up Python ${{ matrix.python }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python }}

    - name: Build wheel and source tarball
      run: |
        pip install wheel
        python setup.py sdist bdist_wheel

    - name: Publish a Python distribution to PyPI
      if: matrix.python == 3.9
      uses: pypa/gh-action-pypi-publish@release/v1
      with:
        user: __token__
        password: ${{ secrets.PYPI_TOKEN }}

name: Publish DBUtils on PyPI

on:
  push:
    tags:
      - 'Release-*'

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python: [3.9, 2.7]

    steps:
    - uses: actions/checkout@v2

    - name: Set up Python ${{ matrix.python }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python }}

    - name: Build source tarball
      if: matrix.python == 3.9
      run: python setup.py sdist

    - name: Build wheel
      run: |
        pip install wheel
        python setup.py bdist_wheel

    - name: Publish distribution to PyPI
      uses: pypa/gh-action-pypi-publish@release/v1
      with:
        user: __token__
        password: ${{ secrets.PYPI_TOKEN }}

Improve workflow for publishing on PyPI
Improve workflow for publishing on PyPI

We want to publish wheels for both Python 2 and 3
