File tree 1 file changed +24
-1
lines changed
1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Build PYPI wheels for opencv-python
3
3
on :
4
4
push :
5
5
branches :
6
- - all
6
+ - master
7
7
pull_request :
8
8
branches :
9
9
- master
@@ -272,6 +272,29 @@ jobs:
272
272
name : wheels
273
273
path : dist/opencv*.tar.gz
274
274
275
+ test_release_opencv_python_all :
276
+ if : ${{github.event.pull_request.types}}
277
+ needs : [build, build-windows-x86_64, build_sdist]
278
+ runs-on : ubuntu-latest
279
+ environment : test-opencv-python-release
280
+ defaults :
281
+ run :
282
+ shell : bash
283
+ steps :
284
+ - uses : actions/download-artifact@v2
285
+ with :
286
+ name : wheels
287
+ path : wheelhouse/
288
+
289
+ - name : Upload wheels ${{ matrix.os }}
290
+ env :
291
+ # PYPI repository credentials
292
+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
293
+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
294
+ run : |
295
+ python -m pip install twine
296
+ python -m twine upload --repository testpypi -u ${Env:TWINE_USERNAME} -p ${Env:TWINE_PASSWORD} --skip-existing wheelhouse/opencv_*
297
+
275
298
276
299
release_opencv_python :
277
300
if : startsWith(github.ref, 'refs/tags/v')
You can’t perform that action at this time.
0 commit comments