Skip to content

Commit 1066ca2

Browse files
Update python-publish.yml
1 parent b74531c commit 1066ca2

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/python-publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@
88

99
name: Upload Python Package
1010

11-
on: workflow_dispatch
1211

13-
#on:
14-
# release:
15-
# types: [published]
12+
# on demand run, for tests purposes
13+
#on: workflow_dispatch
14+
15+
on:
16+
release:
17+
types: [published]
1618

1719
permissions:
1820
contents: read
@@ -76,5 +78,5 @@ jobs:
7678
uses: pypa/gh-action-pypi-publish@release/v1
7779
with:
7880
packages-dir: dist/
79-
env:
81+
env: ### should not be necessary with Trusted Publisher Management, but we let it here
8082
PYPI_TOKEN: ${{ secrets.PYPITOKENB }}

0 commit comments

Comments
 (0)