File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ jobs:
34
34
run : |
35
35
python -m unittest discover
36
36
- name : Build package with Python ${{ env.PYTHON_BUILD_VERSION }}
37
- if : ${{ github.event_name == 'push' && matrix.python-version == env.PYTHON_BUILD_VERSION }}
37
+ if : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.python-version == env.PYTHON_BUILD_VERSION }}
38
38
run : python -m build
39
39
- name : Publish package relying on pypa/gh-action-pypi-publish with Python ${{ env.PYTHON_BUILD_VERSION }}
40
40
uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
41
- if : ${{ github.event_name == 'push' && matrix.python-version == env.PYTHON_BUILD_VERSION }}
41
+ if : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.python-version == env.PYTHON_BUILD_VERSION }}
42
42
with :
43
43
user : __token__
44
44
password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments