Skip to content

Commit

Permalink
.github/workflows/dist.yml: Revert to uploading platform wheels to Py…
Browse files Browse the repository at this point in the history
…PI in a separate job
  • Loading branch information
Matthias Koeppe committed May 29, 2024
1 parent 77323e2 commit 905379e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,20 @@ jobs:
name: ${{ matrix.os }}-${{ matrix.arch }}-wheels
path: ./wheelhouse/*.whl

upload_wheels:
# This needs to be a separate job because pypa/gh-action-pypi-publish cannot run on macOS
needs: build_wheels
runs-on: ubuntu-latest
env:
CAN_DEPLOY: ${{ secrets.SAGEMATH_PYPI_API_TOKEN != '' }}
steps:

- uses: actions/download-artifact@v4
with:
pattern: "*-*-wheels"
path: wheelhouse
merge-multiple: true

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down

0 comments on commit 905379e

Please sign in to comment.