Skip to content

Fix fetch utils

Fix fetch utils #126

name: Publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI
on: push
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions πŸ“¦ to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Setup deps
run: pip install wheel
- name: Build wheel
run: python setup.py sdist bdist_wheel
- name: Publish distribution πŸ“¦ to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}