Skip to content

Commit ccbd5bb

Browse files
committed
Migrate CI pipeline to actions/upload-artifact@v4
1 parent 00326e9 commit ccbd5bb

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/publishing.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ jobs:
4949
- run: |
5050
python -m pip install --upgrade build
5151
python -m build --sdist
52-
- uses: actions/upload-artifact@v3
52+
- uses: actions/upload-artifact@v4
5353
with:
54+
name: cibw-sdist
5455
path: ./dist/*
5556

5657
build-wheels:
@@ -66,8 +67,9 @@ jobs:
6667
- uses: actions/checkout@v3
6768
- name: Build wheels
6869
uses: pypa/cibuildwheel@v2.20.0
69-
- uses: actions/upload-artifact@v3
70+
- uses: actions/upload-artifact@v4
7071
with:
72+
name: cibw-wheels-x86-${{ matrix.os }}-${{ strategy.job-index }}
7173
path: ./wheelhouse/*.whl
7274

7375
build-wheels-linux-aarch64:
@@ -85,19 +87,21 @@ jobs:
8587
uses: pypa/cibuildwheel@v2.20.0
8688
env:
8789
CIBW_ARCHS_LINUX: aarch64
88-
- uses: actions/upload-artifact@v3
90+
- uses: actions/upload-artifact@v4
8991
with:
92+
name: cibw-wheels-arm-${{ matrix.os }}-${{ strategy.job-index }}
9093
path: ./wheelhouse/*.whl
9194

9295
publish:
9396
name: Publish on PyPI
9497
needs: [build-sdist, build-wheels, build-wheels-linux-aarch64]
9598
runs-on: ubuntu-22.04
9699
steps:
97-
- uses: actions/download-artifact@v3
100+
- uses: actions/download-artifact@v4
98101
with:
99-
name: artifact
102+
pattern: cibw-*
100103
path: dist
104+
merge-multiple: true
101105
- uses: pypa/gh-action-pypi-publish@release/v1
102106
with:
103107
user: __token__

0 commit comments

Comments
 (0)