Skip to content

Commit 89d416e

Browse files
committed
Migrate pypi to GHA artifacts v4
1 parent c368145 commit 89d416e

File tree

1 file changed

+23
-10
lines changed

1 file changed

+23
-10
lines changed

.github/workflows/pypi.yml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232

3333
- uses: actions/upload-artifact@v4
3434
with:
35+
name: sdist
3536
path: dist/*.tar.gz
3637

3738
build_wheels:
@@ -53,17 +54,24 @@ jobs:
5354

5455
- uses: actions/upload-artifact@v4
5556
with:
57+
name: wheels
5658
path: ./wheelhouse/*.whl
5759

5860
check_dist:
5961
name: Check dist
6062
needs: [make_sdist,build_wheels]
6163
runs-on: ubuntu-22.04
6264
steps:
63-
- uses: actions/download-artifact@v3
65+
- uses: actions/download-artifact@v4
6466
with:
65-
name: artifact
67+
name: sdist
6668
path: dist
69+
70+
- uses: actions/download-artifact@v4
71+
with:
72+
name: wheels
73+
path: dist
74+
6775
- name: Check SDist
6876
run: |
6977
mkdir -p test-sdist
@@ -83,12 +91,17 @@ jobs:
8391
runs-on: ubuntu-latest
8492
if: github.event_name == 'release' && github.event.action == 'published'
8593
steps:
86-
- uses: actions/download-artifact@v3
87-
with:
88-
name: artifact
89-
path: dist
94+
- uses: actions/download-artifact@v4
95+
with:
96+
name: sdist
97+
path: dist
9098

91-
- uses: pypa/[email protected]
92-
with:
93-
user: __token__
94-
password: ${{ secrets.pypi_password }}
99+
- uses: actions/download-artifact@v4
100+
with:
101+
name: wheels
102+
path: dist
103+
104+
- uses: pypa/[email protected]
105+
with:
106+
user: __token__
107+
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)