Skip to content

Merge pull request #106 from expobrain/duplicate_location #39

Merge pull request #106 from expobrain/duplicate_location

Merge pull request #106 from expobrain/duplicate_location #39

Workflow file for this run

name: Publish to PyPI
on: push
jobs:
build-and-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags')
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install .
- name: Build a binary wheel and source tarball
run: |
python setup.py bdist_wheel sdist
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
name: dist
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@37e305e7413032d8422456179fee28fac7d25187
with:
password: ${{ secrets.PYPI_TOKEN }}