Skip to content

Disable weekly builds #92

Disable weekly builds

Disable weekly builds #92

Workflow file for this run

on:
push:
pull_request:
jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- run: python -m pip install -U pip
- run: python -m pip install setuptools wheel
- run: python -m pip install flake8 twine
- run: python setup.py sdist bdist_wheel
- run: python -m pip install dist/*.whl
- run: twine check dist/*
- run: flake8
- name: Publish PyPI package
if: startsWith(github.ref, 'refs/tags/v') && matrix.python == '3.8'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: twine upload dist/*.whl dist/*.tar.gz