From 4085e9134ec899f2688e434e7f2e8b2458fff7f7 Mon Sep 17 00:00:00 2001 From: jcschaff Date: Mon, 10 Jun 2024 14:29:10 -0400 Subject: [PATCH] upload each wheel file independently --- .github/workflows/pip.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pip.yml b/.github/workflows/pip.yml index e5dd2452..1f02c3c5 100644 --- a/.github/workflows/pip.yml +++ b/.github/workflows/pip.yml @@ -141,11 +141,27 @@ jobs: pip install pytest pytest if: matrix.platform == 'windows-latest' - + - name: Upload wheels as build artifacts + run: | + for wheel_file in dist/*.whl; do + echo "Uploading $wheel_file" + echo "::set-output name=wheel_file::$wheel_file" + echo "::set-output name=artifact_name::$(basename $wheel_file .whl)" + done + id: get_wheel_files + + - name: Upload wheel file uses: actions/upload-artifact@v4 with: - path: dist/*.whl + name: ${{ steps.get_wheel_files.outputs.artifact_name }} + path: ${{ steps.get_wheel_files.outputs.wheel_file }} + +# - name: Upload wheels as build artifacts +# uses: actions/upload-artifact@v4 +# with: +# name: wheels-${{ matrix.platform }}-${{ matrix.python-version }} +# path: dist/*.whl - name: Setup tmate session uses: mxschmitt/action-tmate@v3