Skip to content

Commit daf80dd

Browse files
committed
Update create-release.yml workflow: publish releases with a Trusted Publisher.
1 parent c11de64 commit daf80dd

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/create-release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11+
# environment: release
12+
permissions:
13+
id-token: write
1114

1215
steps:
1316
- name: Checkout
@@ -38,5 +41,5 @@ jobs:
3841
- name: Publish on PyPI
3942
uses: pypa/gh-action-pypi-publish@release/v1
4043
with:
41-
packages_dir: dist/
42-
password: ${{ secrets.WORKFLOWS_PUBLISH_TO_PYPI_TOKEN }}
44+
packages-dir: dist/
45+
# password: ${{ secrets.WORKFLOWS_PUBLISH_TO_PYPI_TOKEN }}

0 commit comments

Comments
 (0)