diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 0000000..ffac95a --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,32 @@ +name: PyPI Release + +on: + push: + tags: + - 'v*' + +jobs: + publish: + name: PyPI Release + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Setup Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + + - name: Upgrade Setuptools + run: pip install --upgrade setuptools wheel + + - name: Build Distribution + run: python setup.py sdist bdist_wheel --universal + + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.pypi_password }} \ No newline at end of file