Skip to content

Commit 3775ac1

Browse files
authored
Update python-publish.yml
1 parent 5367d4b commit 3775ac1

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,18 @@
88

99
name: Upload Python Package
1010

11-
on: [push]
11+
on:
12+
release:
13+
types: [published]
1214

1315
permissions:
1416
contents: read
1517

1618
jobs:
1719
deploy:
20+
1821
runs-on: ubuntu-latest
19-
# Specifying a GitHub environment is optional, but strongly encouraged
20-
environment: pypi
21-
permissions:
22-
# IMPORTANT: this permission is mandatory for Trusted Publishing
23-
id-token: write
22+
2423
steps:
2524
- uses: actions/checkout@v4
2625
- name: Set up Python
@@ -35,4 +34,6 @@ jobs:
3534
run: python -m build
3635
- name: Publish package
3736
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
38-
37+
with:
38+
user: __token__
39+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)