File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ name: Python package (MacOS)
33on :
44 push :
55 pull_request :
6- release :
7- types : [created]
86
97jobs :
108 build :
5351 path : wheelhouse/*.whl
5452 retention-days : 1
5553 - name : Upload to PyPI
56- if : github.event_name == 'release'
54+ if : startsWith( github.ref, 'refs/tags/')
5755 env :
5856 TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
5957 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ name: Package
66on :
77 push :
88 pull_request :
9- release :
10- types : [created]
119
1210defaults :
1311 run :
6866 xvfb-run --auto-servernum pytest --cov-report=xml
6967 - uses : codecov/codecov-action@v1
7068 - name : Upload to PyPI
71- if : github.event_name == 'release' && runner.os != 'Linux'
69+ if : startsWith( github.ref, 'refs/tags/') && runner.os != 'Linux'
7270 env :
7371 TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
7472 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
You can’t perform that action at this time.
0 commit comments