Skip to content

Commit ae7da5d

Browse files
authored
Update _release.yml
1 parent b916688 commit ae7da5d

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/_release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,8 @@ jobs:
175175
- pre-release-checks
176176
environment: Scheduled testing publish
177177
runs-on: ubuntu-latest
178-
# permissions:
179-
# # This permission is used for trusted publishing:
180-
# # https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/
181-
# #
182-
# # Trusted publishing has to also be configured on PyPI for each package:
183-
# # https://docs.pypi.org/trusted-publishers/adding-a-publisher/
184-
# id-token: write
178+
permissions:
179+
id-token: write # This is required for requesting the JWT
185180

186181
defaults:
187182
run:
@@ -205,6 +200,7 @@ jobs:
205200

206201
- name: Publish package distributions to PyPI
207202
uses: pypa/gh-action-pypi-publish@release/v1
203+
208204
with:
209205
packages-dir: ${{ inputs.working-directory }}/dist/
210206
verbose: true
@@ -257,4 +253,4 @@ jobs:
257253
draft: false
258254
generateReleaseNotes: true
259255
tag: v${{ needs.build.outputs.version }}
260-
commit: main
256+
commit: main

0 commit comments

Comments
 (0)