Skip to content

Commit 9dea887

Browse files
committed
using upload-artifactv4
1 parent b40cbbb commit 9dea887

2 files changed

Lines changed: 22 additions & 7 deletions

File tree

.github/workflows/release.yaml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,9 @@ jobs:
7878
security delete-keychain ${APPLE_SIGNING_KEYCHAIN_PATH}
7979
rm -f ${APPLE_SIGNING_KEYCHAIN_PATH}
8080
81-
- uses: actions/upload-artifact@v3
81+
- uses: actions/upload-artifact@v4
8282
with:
83+
name: wheels-${{ matrix.os }}
8384
path: ./wheelhouse/*.whl
8485

8586
build_sdist:
@@ -91,20 +92,32 @@ jobs:
9192
- name: Build sdist
9293
run: pipx run build --sdist
9394

94-
- uses: actions/upload-artifact@v3
95+
- uses: actions/upload-artifact@v4
9596
with:
97+
name: sdist
9698
path: dist/*.tar.gz
9799

98100
upload_pypi:
99101
needs: [build_wheels, build_sdist]
100102
runs-on: ubuntu-latest
101103
environment: release
102104
steps:
105+
# retrieve all artifacts
103106
- uses: actions/download-artifact@v4
104107
with:
105-
# unpacks default artifact into dist/
106-
# if `name: artifact` is omitted, the action will create extra parent dir
107-
name: artifact
108+
name: sdist
109+
path: dist
110+
- uses: actions/download-artifact@v4
111+
with:
112+
name: wheels-ubuntu-20.04
113+
path: dist
114+
- uses: actions/download-artifact@v4
115+
with:
116+
name: wheels-macos-13
117+
path: dist
118+
- uses: actions/download-artifact@v4
119+
with:
120+
name: wheels-windows-2022
108121
path: dist
109122

110123
- uses: pypa/gh-action-pypi-publish@v1.9.0

.github/workflows/wheels.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ jobs:
3434
- name: Build wheels
3535
uses: pypa/cibuildwheel@v2.16
3636

37-
- uses: actions/upload-artifact@v3
37+
- uses: actions/upload-artifact@v4
3838
with:
39+
name: wheels-${{ matrix.os }}
3940
path: ./wheelhouse/*.whl
4041

4142
build_sdist:
@@ -47,6 +48,7 @@ jobs:
4748
- name: Build sdist
4849
run: pipx run build --sdist
4950

50-
- uses: actions/upload-artifact@v3
51+
- uses: actions/upload-artifact@v4
5152
with:
53+
name: sdist
5254
path: dist/*.tar.gz

0 commit comments

Comments
 (0)