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 :
4949 name : sdist
5050 path : ./dist/*.tar.gz
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 :
101101 name : ${{ matrix.python == '*' && 'all' || matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
102102 path : ./wheelhouse/*.whl
@@ -106,7 +106,7 @@ jobs:
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 :
111111 name : sdist
112112 path : ./dist
@@ -127,7 +127,7 @@ 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/
133133 - name : Check artifacts
@@ -143,16 +143,20 @@ jobs:
143143 runs-on : ubuntu-latest
144144 environment : " Package deployment"
145145 needs : [pre-publish]
146- if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
147146 steps :
148- - uses : actions/download-artifact@v3
147+ - uses : actions/download-artifact@v4
149148 with :
150149 path : dist/
150+ pattern : ' *'
151+ merge-multiple : true
151152 - name : Consolidate artifacts
152153 run : |
154+ set -eo pipefail
153155 mv dist/*/*.{tar.gz,whl} dist
154156 rmdir dist/*/
157+ ls -lR dist/
155158 - uses : pypa/gh-action-pypi-publish@release/v1
156159 with :
157160 user : __token__
158161 password : ${{ secrets.PYPI_API_TOKEN }}
162+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
0 commit comments