4444 fetch-depth : 0
4545 - name : Build sdist
4646 run : pipx run build -s
47- - uses : actions/upload-artifact@v3
47+ - uses : actions/upload-artifact@v4
4848 with :
49- name : sdist
49+ name : source-dist
5050 path : ./dist/*.tar.gz
5151
5252 build-wheel :
8282 - uses : actions/setup-python@v3
8383
8484 - name : Update pip/pipx
85- run : pip install --upgrade pip pipx
85+ run : python -m pip install --upgrade pip pipx
8686
8787 # For aarch64 support
8888 # https://cibuildwheel.pypa.io/en/stable/faq/#emulation
@@ -96,19 +96,19 @@ jobs:
9696 env :
9797 CIBW_BUILD : ${{ matrix.python }}-${{ matrix.buildplat[1] }}
9898
99- - uses : actions/upload-artifact@v3
99+ - uses : actions/upload-artifact@v4
100100 with :
101- name : ${{ matrix.python == '*' && 'all' || matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
101+ name : ${{ matrix.python == '*' && 'all' || matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}-dist
102102 path : ./wheelhouse/*.whl
103103
104104 test-sdist :
105105 name : Test sdist
106106 needs : [build-sdist]
107107 runs-on : ubuntu-latest
108108 steps :
109- - uses : actions/download-artifact@v3
109+ - uses : actions/download-artifact@v4
110110 with :
111- name : sdist
111+ name : source-dist
112112 path : ./dist
113113 - uses : actions/setup-python@v4
114114 with :
@@ -127,16 +127,12 @@ jobs:
127127 runs-on : ubuntu-latest
128128 needs : [test-sdist, build-wheel]
129129 steps :
130- - uses : actions/download-artifact@v3
130+ - uses : actions/download-artifact@v4
131131 with :
132132 path : dist/
133- - name : Check artifacts
134- run : ls -lR
135- - name : Consolidate and re-check
136- run : |
137- mv dist/*/*.{tar.gz,whl} dist
138- rmdir dist/*/
139- ls -lR
133+ pattern : ' *-dist'
134+ merge-multiple : true
135+ - run : ls -lR dist/
140136 - run : pipx run twine check dist/*
141137
142138 publish :
@@ -145,13 +141,12 @@ jobs:
145141 needs : [pre-publish]
146142 if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
147143 steps :
148- - uses : actions/download-artifact@v3
144+ - uses : actions/download-artifact@v4
149145 with :
150146 path : dist/
151- - name : Consolidate artifacts
152- run : |
153- mv dist/*/*.{tar.gz,whl} dist
154- rmdir dist/*/
147+ pattern : ' *-dist'
148+ merge-multiple : true
149+ - run : ls -lR dist/
155150 - uses : pypa/gh-action-pypi-publish@release/v1
156151 with :
157152 user : __token__
0 commit comments