Skip to content

Commit

Permalink
Publish the wheels as an artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
heerener committed Dec 6, 2024
1 parent 5fd12eb commit 33237c7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish_wheels.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
name: Neurodamus Wheels

on: [pull_request, push, workflow_dispatch]

jobs:
wheel:
runs-on: ubuntu-22.04
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 33237c7

Please sign in to comment.