Skip to content

Commit 9ffdad5

Browse files
committed
try a different trigger config in publish CI
1 parent 18e254f commit 9ffdad5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ name: Upload Python Package
1010

1111
on:
1212
release:
13-
types: [created]
13+
branches: [main]
14+
types: [published]
1415
workflow_dispatch:
1516

1617
permissions:
@@ -43,7 +44,7 @@ jobs:
4344
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
4445
run: twine upload --repository testpypi dist/*
4546
- name: Publish package (to PyPI)
46-
if: github.event_name != 'workflow_dispatch' && github.repository == 'cpp-linter/clang-tools-pip' && github.ref == 'refs/heads/main'
47+
if: github.event_name != 'workflow_dispatch' && github.repository == 'cpp-linter/clang-tools-pip'
4748
env:
4849
TWINE_USERNAME: __token__
4950
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)