From 65032b832586a79991dd1f9491b94fbd4bf859ae Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 19 Dec 2023 13:09:04 +0100 Subject: [PATCH] Bump actions/upload-artifact from 3 to 4 (#108) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/ci_and_build_release.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci_and_build_release.yml b/.github/workflows/ci_and_build_release.yml index 1260ff3..78a4acf 100644 --- a/.github/workflows/ci_and_build_release.yml +++ b/.github/workflows/ci_and_build_release.yml @@ -60,8 +60,7 @@ jobs: uses: docker/setup-qemu-action@v3 with: platforms: all - - name: Build source distribution - run: python setup.py sdist + - name: Build wheels uses: pypa/cibuildwheel@v2.16.2 env: @@ -69,11 +68,21 @@ jobs: CIBW_ARCHS_LINUX: ${{ matrix.linux_arch }} CIBW_ARCHS_MACOS: universal2 CIBW_BUILD_VERBOSITY: 1 - - uses: actions/upload-artifact@v3 + - name: Upload wheel artifacts + uses: actions/upload-artifact@v4 + with: + path: ./wheelhouse/*.whl + name: Wheels ${{ matrix.os }} ${{ matrix.linux_arch }} + # The action/upload-artifact only allows unique filenames for whole run + - name: Build source distribution + if: runner.os == 'Linux' && matrix.linux_arch == 'aarch64' + run: python setup.py sdist + - name: Upload source distribution artifact + uses: actions/upload-artifact@v4 + if: runner.os == 'Linux' && matrix.linux_arch == 'aarch64' with: - path: | - ./wheelhouse/*.whl - ./dist/*.tar.gz + path: ./dist/*.tar.gz + name: Source distribution - name: Publish to PyPI env: TWINE_USERNAME: '__token__'