Skip to content

Commit

Permalink
Publish wheels as artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
heerener committed Dec 6, 2024
1 parent 5fd12eb commit 1d546e5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,23 @@ 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
needs: [wheel]
# 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
pattern: wheels*
path: dist/
merge-multiple: true

- name: Display structure of downloaded files
run: ls -R
Expand Down

0 comments on commit 1d546e5

Please sign in to comment.