Skip to content

Issue #119: Use pip-tools #56

Issue #119: Use pip-tools

Issue #119: Use pip-tools #56

Workflow file for this run

name: Publish
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox-gh-actions wheel twine
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Create packages
run: |
python setup.py sdist bdist_wheel
- name: Check packages
run: |
twine check dist/*
- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}