4949 runs-on : ${{ matrix.os }}
5050 strategy :
5151 matrix :
52- python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
52+ python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
5353 include :
5454 - os : [windows-latest]
5555 arch : ["x86"]
7979 python setup.py bdist_wheel --plat-name=win32
8080
8181 - name : Save wheel
82- uses : actions/upload-artifact@v2
82+ uses : actions/upload-artifact@v4
8383 with :
84+ name : artifacts-win32-${{ matrix.python }}
8485 path : dist/*.whl
8586 if-no-files-found : error
8687
9091 runs-on : ${{ matrix.os }}
9192 strategy :
9293 matrix :
93- python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11']
94+ python : ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12' ]
9495 include :
9596 - os : [windows-latest]
9697 arch : ["AMD64"]
@@ -120,8 +121,9 @@ jobs:
120121 python setup.py bdist_wheel --plat-name=win_amd64
121122
122123 - name : Save wheel
123- uses : actions/upload-artifact@v2
124+ uses : actions/upload-artifact@v4
124125 with :
126+ name : artifacts-win64-${{ matrix.python }}
125127 path : dist/*.whl
126128 if-no-files-found : error
127129
@@ -136,10 +138,11 @@ jobs:
136138 id-token : write
137139 if : github.ref == 'refs/heads/main'
138140 steps :
139- - uses : actions/download-artifact@v2
141+ - uses : actions/download-artifact@v4
140142 with :
141- name : artifact
143+ pattern : artifacts-*
142144 path : dist
145+ merge-multiple : true
143146
144147 - name : Publish package to TestPyPI
145148 uses : pypa/gh-action-pypi-publish@release/v1
@@ -157,10 +160,11 @@ jobs:
157160 id-token : write
158161 if : startsWith(github.ref, 'refs/tags/v')
159162 steps :
160- - uses : actions/download-artifact@v2
163+ - uses : actions/download-artifact@v4
161164 with :
162- name : artifact
165+ pattern : artifacts-*
163166 path : dist
167+ merge-multiple : true
164168
165169 - name : Publish package to PyPI
166170 uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments