From eff64809c5ec48f0a01592a278cad3e8e63cad1a Mon Sep 17 00:00:00 2001 From: Zymrael Date: Tue, 20 Jul 2021 13:47:09 +0900 Subject: [PATCH 1/2] add PyPI publishing step to CI script --- .github/workflows/python-package.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 8b5c379..d7be953 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -92,3 +92,14 @@ 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 }} From b31825280e50293bce327ae6d89a7b7e4f5bfce1 Mon Sep 17 00:00:00 2001 From: Zymrael Date: Tue, 20 Jul 2021 13:48:03 +0900 Subject: [PATCH 2/2] adnewline --- .github/workflows/python-package.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index d7be953..a7438be 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -103,3 +103,4 @@ jobs: with: user: __token__ password: ${{ secrets.pypi_password }} +