Skip to content

Commit 8a43e81

Browse files
committed
ci: Use PyPI trusted publisher
This commit updates the CI release workflow to use the PyPI "trusted publisher" package publishing mechanism. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 66ba177 commit 8a43e81

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,21 @@ on:
44
release:
55
types: [ published ]
66

7-
permissions:
8-
contents: write
9-
107
jobs:
118
ci:
129
name: CI
1310
uses: ./.github/workflows/ci.yml
1411

1512
release:
1613
name: Release
14+
environment: release
1715
needs: [ ci ]
1816
runs-on: ubuntu-20.04
1917

18+
permissions:
19+
contents: write
20+
id-token: write
21+
2022
steps:
2123
- name: Download build artifacts
2224
uses: actions/download-artifact@v4
@@ -37,5 +39,4 @@ jobs:
3739
- name: Publish package to PyPI
3840
uses: pypa/gh-action-pypi-publish@release/v1
3941
with:
40-
password: ${{ secrets.PYPI_API_TOKEN }}
4142
packages-dir: assets/

0 commit comments

Comments
 (0)