Skip to content

Commit

Permalink
Update upload-artifact action to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilliamson committed Jun 15, 2024
1 parent dc191ad commit 4356c60
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ jobs:
- name: Check metadata
run: python -m twine check dist/*

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

build_wheels_matrix:
Expand Down Expand Up @@ -150,9 +151,10 @@ jobs:
env:
CIBW_ENVIRONMENT: ${{ runner.os == 'Windows' && matrix.arch == 'x86' && 'CC=i686-w64-mingw32-gcc.exe' || '' }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: steps.should-build-wheel.outputs.true
with:
name: dist-wheel-${{ matrix.cibw-only }}
path: ./wheelhouse/*.whl

build_wheels_macosx_arm64:
Expand Down Expand Up @@ -186,5 +188,16 @@ jobs:
only: cp310-macosx_arm64

- uses: actions/upload-artifact@v4
name: dist-wheels-macos-arm64
with:
path: ./wheelhouse/*.whl

merge_wheel_artifacts:
runs-on: ubuntu-latest
needs: [build_sdist, build_wheels, build_wheels_macosx_arm64]
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: dist
pattern: dist-*

0 comments on commit 4356c60

Please sign in to comment.