Skip to content

Commit 9a3e81f

Browse files
authored
Update PyPI publish.yml for trusted publishing
1 parent a7346d3 commit 9a3e81f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Diff for: .github/workflows/publish.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ on:
77
jobs:
88
Publish:
99
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
1013
steps:
1114
- name: Checkout
12-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1316

1417
- name: Setup Python
1518
uses: actions/setup-python@v4
@@ -26,7 +29,3 @@ jobs:
2629

2730
- name: Publish distribution 📦 to PyPI
2831
uses: pypa/gh-action-pypi-publish@release/v1
29-
with:
30-
user: ${{ secrets.PYPI_USERNAME }}
31-
password: ${{ secrets.PYPI_PASSWORD }}
32-

0 commit comments

Comments
 (0)