Skip to content

Commit

Permalink
ci: fix wheel & sdist artifact uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
percevalw authored Oct 10, 2024
1 parent aa7dffb commit 0b1669e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,17 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Build wheels
uses: pypa/cibuildwheel@v2.16.5
uses: pypa/cibuildwheel@v2.21.3
env:
CIBW_ARCHS_MACOS: "x86_64 arm64"
PIP_EXTRA_INDEX_URL: "https://download.pytorch.org/whl/cpu"

- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl

build_sdist:
Expand All @@ -50,6 +51,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz

PyPI:
Expand All @@ -59,10 +61,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v4.1.7
- uses: actions/download-artifact@v4
with:
name: artifact
pattern: cibw-*
path: dist
merge-multiple: true
- name: Publish package
uses: pypa/[email protected]
with:
Expand Down

0 comments on commit 0b1669e

Please sign in to comment.