Skip to content

Commit

Permalink
ENH: Automate deploy to PyPI
Browse files Browse the repository at this point in the history
Automatically deploys wheels to the Python Package Index on tag
  • Loading branch information
tbirdso committed Nov 15, 2023
1 parent 4fa74ec commit cfd21e8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit cfd21e8

Please sign in to comment.