Skip to content

Commit

Permalink
Use the trusted publisher workflow to publish to PyPI.
Browse files Browse the repository at this point in the history
Also fix the doc building action to install knncolle.
  • Loading branch information
LTLA committed Jan 3, 2025
1 parent 25905ce commit 9935b85
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 9935b85

Please sign in to comment.