Skip to content

Commit 18e254f

Browse files
committed
try inverted logic again in publish CI
1 parent 2bd60f0 commit 18e254f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
4444
run: twine upload --repository testpypi dist/*
4545
- name: Publish package (to PyPI)
46-
if: github.event_name == 'created' && github.repository == 'cpp-linter/clang-tools-pip' && github.ref == 'refs/heads/main'
46+
if: github.event_name != 'workflow_dispatch' && github.repository == 'cpp-linter/clang-tools-pip' && github.ref == 'refs/heads/main'
4747
env:
4848
TWINE_USERNAME: __token__
4949
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)