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 e0b3872 commit 2bd60f0Copy full SHA for 2bd60f0
.github/workflows/python-publish.yml
@@ -10,7 +10,7 @@ name: Upload Python Package
10
11
on:
12
release:
13
- types: [published]
+ types: [created]
14
workflow_dispatch:
15
16
permissions:
@@ -43,7 +43,7 @@ jobs:
43
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
44
run: twine upload --repository testpypi dist/*
45
- name: Publish package (to PyPI)
46
- if: github.event_name != 'workflow_dispatch' && github.repository == 'cpp-linter/clang-tools-pip' && github.ref == 'refs/heads/main'
+ if: github.event_name == 'created' && github.repository == 'cpp-linter/clang-tools-pip' && github.ref == 'refs/heads/main'
47
env:
48
TWINE_USERNAME: __token__
49
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments