Skip to content

Commit 6602a70

Browse files
committed
Making release workflow use OIDC correctly
1 parent 89db3b0 commit 6602a70

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@ on:
33

44
name: Release Packages
55

6-
permissions:
7-
contents: write
8-
96
jobs:
107
build:
118
name: Create the package
129
runs-on: ubuntu-latest
1310
environment: github_release
11+
permissions:
12+
# for trusted publishing
13+
id-token: write
14+
# for creating the release
15+
contents: write
1416
steps:
1517
- uses: actions/checkout@v4
1618

@@ -40,8 +42,5 @@ jobs:
4042
prerelease: false
4143
files: "dist/*"
4244

43-
- uses: pypa/[email protected]
44-
with:
45-
user: __token__
46-
password: ${{ secrets.PYPI_API_TOKEN_CORE }}
47-
packages_dir: dist
45+
- name: publish
46+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)