Skip to content

Commit f99882d

Browse files
authored
Unify PyPI release via GitHub OIDC (#290)
1 parent aae8bde commit f99882d

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/onrelease.yml renamed to .github/workflows/release.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ on:
77

88
jobs:
99
release:
10-
runs-on: ${{ matrix.os }}
11-
strategy:
12-
max-parallel: 1
13-
matrix:
14-
python-version: [ 3.8 ]
15-
os: [ ubuntu-latest ]
10+
runs-on: ubuntu-latest
11+
environment: release
12+
permissions:
13+
# Used to authenticate to PyPI via OIDC and sign the release's artifacts with sigstore-python.
14+
id-token: write
15+
# Used to attach signing artifacts to the published release.
16+
contents: write
1617

1718
steps:
1819
- name: Checkout
@@ -44,9 +45,3 @@ jobs:
4445

4546
- name: Publish a Python distribution to PyPI
4647
uses: pypa/gh-action-pypi-publish@release/v1
47-
with:
48-
user: __token__
49-
password: ${{ secrets.LABS_PYPI_TOKEN }}
50-
51-
52-

0 commit comments

Comments
 (0)