From 905379ecf5375286cf3303433bb155644d316ee6 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 29 May 2024 11:52:55 -0700 Subject: [PATCH] .github/workflows/dist.yml: Revert to uploading platform wheels to PyPI in a separate job --- .github/workflows/dist.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml index f6eded733f8..3d4028dfe78 100644 --- a/.github/workflows/dist.yml +++ b/.github/workflows/dist.yml @@ -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__