Skip to content

Commit 0ef87e9

Browse files
committed
Use trusted publishing by pypi (#346)
1 parent 8db5d19 commit 0ef87e9

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
@@ -3,12 +3,16 @@
33
#
44
name: Publish to PyPI
55

6-
on: [push, pull_request]
6+
on: [push]
77

88
jobs:
99
publish-to-pypi:
1010
runs-on: ubuntu-latest
11-
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/p/kubernetes-asyncio
14+
permissions:
15+
id-token: write
1216
steps:
1317
- uses: actions/checkout@v4
1418
- uses: actions/setup-python@v5
@@ -29,6 +33,3 @@ jobs:
2933
- name: Publish to PyPI
3034
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
3135
uses: pypa/gh-action-pypi-publish@release/v1
32-
with:
33-
user: __token__
34-
password: ${{ secrets.pypi_api_token }}

0 commit comments

Comments
 (0)