diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 8b5c379..a7438be 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -92,3 +92,15 @@ jobs: python setup.py develop cd .. pytest torchsde/tests + + - name: Build + run: >- + python setup.py sdist bdist_wheel + + - name: Publish to PyPI + if: github.event_name == 'release' + uses: pypa/gh-action-pypi-publish@master + with: + user: __token__ + password: ${{ secrets.pypi_password }} +