From b6400f1436e204e0c1a1ed43df6f24db1793e7a4 Mon Sep 17 00:00:00 2001 From: Nicolas Tessore Date: Tue, 6 Feb 2024 10:09:19 +0000 Subject: [PATCH] BLD: fix artifact upload for v4 of action --- .github/workflows/cibuildwheel.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cibuildwheel.yml b/.github/workflows/cibuildwheel.yml index fecc3d3..c4989b1 100644 --- a/.github/workflows/cibuildwheel.yml +++ b/.github/workflows/cibuildwheel.yml @@ -14,12 +14,12 @@ on: jobs: build_wheels: - name: Build wheels on ${{ matrix.os }} - runs-on: ${{ matrix.os }} + name: Build wheels on ${{ matrix.runs-on }} + runs-on: ${{ matrix.runs-on }} strategy: fail-fast: false matrix: - os: [ubuntu-20.04, windows-2019, macos-11] + runs-on: [ubuntu-latest, macos-latest, windows-latest] steps: - uses: actions/checkout@v4 @@ -31,6 +31,7 @@ jobs: - uses: actions/upload-artifact@v4 with: + name: dist-${{ matrix.runs-on }} path: ./wheelhouse/*.whl build_sdist: @@ -44,7 +45,8 @@ jobs: - uses: actions/upload-artifact@v4 with: - path: dist/*.tar.gz + name: dist-sdist + path: dist upload_pypi: name: Upload to PyPI @@ -56,7 +58,8 @@ jobs: steps: - uses: actions/download-artifact@v4 with: - name: artifact + pattern: dist-* + merge-multiple: true path: dist - uses: pypa/gh-action-pypi-publish@release/v1