From 33237c7589f45c5309e7cfb19acece9a1262e781 Mon Sep 17 00:00:00 2001 From: Erik Heeren Date: Fri, 6 Dec 2024 10:15:17 +0100 Subject: [PATCH] Publish the wheels as an artifact --- .github/workflows/publish_wheels.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish_wheels.yml b/.github/workflows/publish_wheels.yml index 0cf66fe7..8bbf5a0d 100644 --- a/.github/workflows/publish_wheels.yml +++ b/.github/workflows/publish_wheels.yml @@ -1,7 +1,6 @@ +--- name: Neurodamus Wheels - on: [pull_request, push, workflow_dispatch] - jobs: wheel: runs-on: ubuntu-22.04 @@ -28,6 +27,10 @@ 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 @@ -39,11 +42,9 @@ jobs: with: name: dist path: dist/ - - name: Display structure of downloaded files run: ls -R working-directory: dist - - name: Upload Wheel if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1