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 }}