Skip to content

Commit 6499194

Browse files
authored
Update publish-to-pypi.yml
1 parent 5909b60 commit 6499194

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/publish-to-pypi.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Upload Python Package
22

3-
#on:
4-
# push:
5-
# branches:
6-
# - main # Only trigger when pushing to the main branch
3+
on:
4+
release:
5+
types: [published] # Trigger only when a new release is published
76

87
jobs:
98
upload-to-pypi:
@@ -19,7 +18,7 @@ jobs:
1918
- name: Set up Python
2019
uses: actions/setup-python@v5
2120
with:
22-
python-version: '3.x' # or specify '3.11' if you want
21+
python-version: '3.x'
2322

2423
- name: Install build tool
2524
run: |

0 commit comments

Comments
 (0)