Skip to content

Commit 3443c91

Browse files
authored
Update release workflow to use PyPI trusted publishing (#94)
Resolves #92 Signed-off-by: Mattt Zmuda <[email protected]>
1 parent e531cff commit 3443c91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
name: "Publish to PyPI"
12+
permissions:
13+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
1214

1315
steps:
1416
- uses: actions/checkout@v3
@@ -21,5 +23,3 @@ jobs:
2123
run: python -m build
2224
- name: Publish distribution 📦 to PyPI
2325
uses: pypa/gh-action-pypi-publish@release/v1
24-
with:
25-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)