From 9935b856d3699e4512e13e4f8d40fac00ceb20d0 Mon Sep 17 00:00:00 2001 From: LTLA Date: Fri, 3 Jan 2025 11:00:10 -0800 Subject: [PATCH] Use the trusted publisher workflow to publish to PyPI. Also fix the doc building action to install knncolle. --- .github/workflows/build-docs.yml | 2 +- .github/workflows/publish-pypi.yml | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 8ed1c32..9a3a91d 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -24,7 +24,7 @@ jobs: - name: Install Python dependencies run: | python -m pip install --upgrade pip setuptools - pip install cmake pybind11 numpy tox assorthead mattress>=0.1.4 + pip install cmake pybind11 numpy tox assorthead mattress>=0.1.4 knncolle>=0.2.0 - name: Build docs run: | diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 31d93d8..f8008d5 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -62,8 +62,4 @@ jobs: # This uses the trusted publisher workflow so no token is required. - name: Publish to PyPI - if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_PASSWORD }} \ No newline at end of file