Skip to content

Commit 83a0d21

Browse files
authored
Deploy to PyPI only when a release is created AGAIN (#415)
1 parent 538cdf6 commit 83a0d21

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/python_publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
url: https://pypi.org/p/pyttsx3
101101
permissions:
102102
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
103-
# if: github.event_name == 'release' && github.event.action == 'created' # Only on release creation
103+
if: github.event_name == 'release' && github.event.action == 'created' # Only on release creation
104104

105105
steps:
106106
- name: Download dist
@@ -112,5 +112,4 @@ jobs:
112112
- name: Publish package distributions to PyPI
113113
uses: pypa/gh-action-pypi-publish@release/v1
114114
with:
115-
attestations: false
116-
password: ${{ secrets.PYPI_API_TOKEN }}
115+
print-hash: true

0 commit comments

Comments
 (0)