We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 394f920 commit bd95c2dCopy full SHA for bd95c2d
1 file changed
.github/workflows/release-pypi.yml
@@ -6,17 +6,21 @@ on:
6
tags:
7
- "v*.*.*"
8
9
+permissions:
10
+ contents: read
11
+ id-token: write # REQUIRED for PyPI Trusted Publishing (OIDC)
12
+
13
jobs:
14
build-publish-pypi:
15
runs-on: ubuntu-latest
16
+ # environment: pypi # uncomment if you set an Environment and referenced it on PyPI
17
steps:
18
- uses: actions/checkout@v4
19
- uses: actions/setup-python@v5
20
with:
21
python-version: "3.11"
22
- run: python -m pip install --upgrade build
23
- run: python -m build
- - name: Publish to PyPI
24
+ - name: Publish to PyPI (Trusted Publishing)
25
uses: pypa/gh-action-pypi-publish@release/v1
- with:
- password: ${{ secrets.PYPI_API_TOKEN }}
26
+ # no 'password:' when using Trusted Publishing
0 commit comments