We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5909b60 commit 6499194Copy full SHA for 6499194
1 file changed
.github/workflows/publish-to-pypi.yml
@@ -1,9 +1,8 @@
1
name: Upload Python Package
2
3
-#on:
4
- # push:
5
- # branches:
6
- # - main # Only trigger when pushing to the main branch
+on:
+ release:
+ types: [published] # Trigger only when a new release is published
7
8
jobs:
9
upload-to-pypi:
@@ -19,7 +18,7 @@ jobs:
19
18
- name: Set up Python
20
uses: actions/setup-python@v5
21
with:
22
- python-version: '3.x' # or specify '3.11' if you want
+ python-version: '3.x'
23
24
- name: Install build tool
25
run: |
0 commit comments