@@ -118,7 +118,7 @@ jobs:
118
118
runs-on : windows-latest
119
119
strategy :
120
120
matrix :
121
- architecture : [x64, x86 ]
121
+ architecture : [x64]
122
122
123
123
steps :
124
124
- uses : actions/checkout@v3
@@ -189,4 +189,56 @@ jobs:
189
189
- uses : actions/upload-artifact@v4
190
190
with :
191
191
path : ./quaddtype/wheelhouse/*.whl
192
- name : wheels-windows-${{ matrix.architecture }}
192
+ name : wheels-windows-${{ matrix.architecture }}
193
+
194
+ publish_to_testpypi :
195
+ name : Publish to TestPyPI
196
+ needs : [build_wheels_linux, build_wheels_macos, build_wheels_windows]
197
+ runs-on : ubuntu-latest
198
+ if : startsWith(github.ref, 'refs/tags/')
199
+ steps :
200
+ - name : Download all workflow run artifacts
201
+ uses : actions/download-artifact@v4
202
+ with :
203
+ path : dist
204
+ - name : Publish to TestPyPI
205
+
206
+ with :
207
+ user : __token__
208
+ password : ${{ secrets.PYPI_API_TOKEN }}
209
+ repository-url : https://test.pypi.org/legacy/
210
+ packages-dir : dist/*
211
+
212
+ create_release :
213
+ name : Create Release
214
+ needs : [build_wheels_linux, build_wheels_macos, build_wheels_windows]
215
+ runs-on : ubuntu-latest
216
+ if : startsWith(github.ref, 'refs/tags/')
217
+
218
+ steps :
219
+ - name : Checkout code
220
+ uses : actions/checkout@v2
221
+
222
+ - name : Download all workflow run artifacts
223
+ uses : actions/download-artifact@v4
224
+ with :
225
+ path : artifacts
226
+
227
+ - name : Create Release
228
+ id : create_release
229
+ uses : actions/create-release@v1
230
+ env :
231
+ GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
232
+ with :
233
+ tag_name : ${{ github.ref }}
234
+ release_name : Release ${{ github.ref }}
235
+ draft : false
236
+ prerelease : false
237
+
238
+ - name : Upload Release Assets
239
+ uses : softprops/action-gh-release@v1
240
+ if : startsWith(github.ref, 'refs/tags/')
241
+ with :
242
+ files : ./artifacts/**/*.whl
243
+ env :
244
+ GITHUB_TOKEN : ${{ secrets.ACCESS_TOKEN }}
0 commit comments