Merge pull request #106 from expobrain/duplicate_location #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |