Skip to content

Commit 905379e

Browse files
author
Matthias Koeppe
committed
.github/workflows/dist.yml: Revert to uploading platform wheels to PyPI in a separate job
1 parent 77323e2 commit 905379e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/dist.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,20 @@ jobs:
240240
name: ${{ matrix.os }}-${{ matrix.arch }}-wheels
241241
path: ./wheelhouse/*.whl
242242

243+
upload_wheels:
244+
# This needs to be a separate job because pypa/gh-action-pypi-publish cannot run on macOS
245+
needs: build_wheels
246+
runs-on: ubuntu-latest
247+
env:
248+
CAN_DEPLOY: ${{ secrets.SAGEMATH_PYPI_API_TOKEN != '' }}
249+
steps:
250+
251+
- uses: actions/download-artifact@v4
252+
with:
253+
pattern: "*-*-wheels"
254+
path: wheelhouse
255+
merge-multiple: true
256+
243257
- uses: pypa/gh-action-pypi-publish@release/v1
244258
with:
245259
user: __token__

0 commit comments

Comments
 (0)