Skip to content

Commit 86e9957

Browse files
committed
Use OIDC for PyPI release
Signed-off-by: Jordan Borean <jborean93@gmail.com>
1 parent b15b139 commit 86e9957

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Diff for: .github/workflows/ci.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ jobs:
251251
- windows
252252

253253
runs-on: ubuntu-latest
254+
permissions:
255+
# IMPORTANT: this permission is mandatory for trusted publishing
256+
id-token: write
257+
254258
steps:
255259
- name: Check out code
256260
uses: actions/checkout@v3
@@ -323,7 +327,4 @@ jobs:
323327

324328
- name: Deploy to PyPI
325329
if: startsWith(github.ref, 'refs/tags/v')
326-
uses: pypa/gh-action-pypi-publish@v1.5.1
327-
with:
328-
user: __token__
329-
password: ${{ secrets.pypi_password }}
330+
uses: pypa/gh-action-pypi-publish@release/v1

Diff for: docs/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316

317317

318318
# Example configuration for intersphinx: refer to the Python standard library.
319-
intersphinx_mapping = {'http://docs.python.org/': None}
319+
intersphinx_mapping = {'python': ('http://docs.python.org/', None)}
320320

321321
# which docstring to use for the class
322322
# can be 'class', 'init', or 'both'

0 commit comments

Comments
 (0)