From cfd21e89ce76e374f7caa75aa8f00a6ce861bb10 Mon Sep 17 00:00:00 2001 From: Tom Birdsong Date: Wed, 15 Nov 2023 15:42:19 -0500 Subject: [PATCH] ENH: Automate deploy to PyPI Automatically deploys wheels to the Python Package Index on tag --- .github/workflows/build-test-publish.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/build-test-publish.yml b/.github/workflows/build-test-publish.yml index 45baf93..72d382b 100644 --- a/.github/workflows/build-test-publish.yml +++ b/.github/workflows/build-test-publish.yml @@ -57,3 +57,22 @@ jobs: shell: bash run: | pytest ./test -vvv -s -k "not localcluster and not serialize_pairwise_result" + + publish: + needs: + - build_wheel + #FIXME - pytest + runs-on: ubuntu-22.04 + # if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') + steps: + - name: Download Python Wheel Artifact + uses: actions/download-artifact@v3 + with: + name: wheel + path: dist + + - name: "Publish Python wheel to the Python Package Index" + uses: pypa/gh-action-pypi-publish@v1.8.10 + with: + skip_existing: true + password: ${{ secrets.pypi_password }}