name: Packaging

on:
  push:
  release:
    types: [published]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [pypy2, pypy3, 3.7]

    steps:
    - uses: actions/checkout@v1
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v1
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip setuptools setuptools_scm wheel
    - name: Create packages
      run: python setup.py sdist bdist_wheel
    - uses: actions/upload-artifact@master
      with:
        name: venvs-dist
        path: dist

Build dists on commit via GitHub Actions.
Build dists on commit via GitHub Actions.
