Skip to content

Commit c6be1dc

Browse files
committed
Update publish.yaml
Signed-off-by: Sorin Birchi <[email protected]>
1 parent 7a7a103 commit c6be1dc

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/publish.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ jobs:
1111
pypi-publish:
1212
name: upload release to PyPI
1313
runs-on: ubuntu-latest
14-
environment: publish
14+
# Specifying a GitHub environment is optional, but strongly encouraged
15+
environment: release
1516
permissions:
17+
# IMPORTANT: this permission is mandatory for trusted publishing
1618
id-token: write
1719
steps:
20+
# retrieve your distributions here
21+
1822
- name: Publish package distributions to PyPI
19-
uses: pypa/gh-action-pypi-publish@release/v1
20-
with:
21-
username: __token__
22-
password: ${{ secrets.PYPI_API_TOKEN }}
23+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)