We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18e254f commit 9ffdad5Copy full SHA for 9ffdad5
.github/workflows/python-publish.yml
@@ -10,7 +10,8 @@ name: Upload Python Package
10
11
on:
12
release:
13
- types: [created]
+ branches: [main]
14
+ types: [published]
15
workflow_dispatch:
16
17
permissions:
@@ -43,7 +44,7 @@ jobs:
43
44
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
45
run: twine upload --repository testpypi dist/*
46
- name: Publish package (to PyPI)
- 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'
48
env:
49
TWINE_USERNAME: __token__
50
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments