From 972b4a6977f9e0c479dd60bc22e0f088ef63c026 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 01:21:03 +0000 Subject: [PATCH 1/3] build(deps): bump actions/upload-artifact from 3 to 4 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] --- .github/workflows/python.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index c2bfd60..91954a2 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -39,7 +39,7 @@ jobs: # available. CIBW_TEST_SKIP: "*-macosx_arm64 *-macosx_universal2:arm64" - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: python_packages path: ./wheelhouse/*.whl @@ -53,7 +53,7 @@ jobs: - name: Build sdist run: pipx run build --sdist - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: python_packages path: dist/*.tar.gz From 854a639361202486b74dfd9ac6e82fee040c32d4 Mon Sep 17 00:00:00 2001 From: Peter Lithammer Date: Fri, 22 Mar 2024 08:57:28 +0100 Subject: [PATCH 2/3] Migrate artifact tasks to v4 https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md --- .github/workflows/python.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 91954a2..322c51c 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -41,7 +41,7 @@ jobs: - uses: actions/upload-artifact@v4 with: - name: python_packages + name: python-packages-${{ matrix.runs-on }} path: ./wheelhouse/*.whl build_sdist: @@ -55,7 +55,7 @@ jobs: - uses: actions/upload-artifact@v4 with: - name: python_packages + name: python-packages-${{ matrix.runs-on }} path: dist/*.tar.gz publish: @@ -68,8 +68,9 @@ jobs: steps: - uses: actions/download-artifact@v3 with: - name: python_packages + pattern: python-packages-* path: dist + merge-multiple: true # - name: Publish packages to TestPyPI # uses: pypa/gh-action-pypi-publish@release/v1 From 557a79f8d61159609a2585ca0437caa0e1592a8e Mon Sep 17 00:00:00 2001 From: Peter Lithammer Date: Fri, 22 Mar 2024 09:24:08 +0100 Subject: [PATCH 3/3] Fix duplicate artifact error --- .github/workflows/python.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 322c51c..12c0792 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -13,11 +13,11 @@ 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: matrix: - os: [ubuntu-22.04, windows-2019, macos-12] + runs-on: [ubuntu-22.04, windows-2019, macos-12] steps: - uses: actions/checkout@v4 @@ -55,7 +55,7 @@ jobs: - uses: actions/upload-artifact@v4 with: - name: python-packages-${{ matrix.runs-on }} + name: python-packages-sdist path: dist/*.tar.gz publish: @@ -66,7 +66,7 @@ jobs: # if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') if: github.event_name == 'release' && github.event.action == 'published' steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: pattern: python-packages-* path: dist