From 758918f698deb06a6b67f174b15629e6c08fc3c8 Mon Sep 17 00:00:00 2001 From: Erik Heeren Date: Fri, 6 Dec 2024 10:23:14 +0100 Subject: [PATCH] Publish wheels as artifacts --- .github/workflows/publish_wheels.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_wheels.yml b/.github/workflows/publish_wheels.yml index 0cf66fe7..5e669f4e 100644 --- a/.github/workflows/publish_wheels.yml +++ b/.github/workflows/publish_wheels.yml @@ -28,16 +28,20 @@ jobs: cd $GITHUB_WORKSPACE pip3 install tox DIST_FILE=`ls dist/*whl` && tox --installpkg=$DIST_FILE -e ${{ matrix.python_version }} + - uses: actions/upload-artifact@v4 + with: + name: wheels-${{ matrix.python_version }}-${{ strategy.job-index }} + path: ./dist/*.whl pypi-publish: runs-on: ubuntu-22.04 # IMPORTANT: this permission is mandatory for trusted publishing permissions: id-token: write steps: - - name: Download artifacts produced by the Build Wheel job + - name: Download artifacts produced by the wheel job uses: actions/download-artifact@v4 with: - name: dist + name: wheels* path: dist/ - name: Display structure of downloaded files