Skip to content

Commit 4a7a286

Browse files
committed
Update release action for trusted publishing
1 parent 37492bc commit 4a7a286

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
name: Publish koopmans
1616
runs-on: ubuntu-latest
1717
if: github.repository == 'epfl-theos/koopmans' && startsWith(github.ref, 'refs/tags/v')
18+
environment:
19+
name: pypi
20+
url: https://pypi.org/p/koopmans
21+
permissions:
22+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
1823

1924
steps:
2025
- name: Checkout repository
@@ -36,6 +41,3 @@ jobs:
3641

3742
- name: Publish package to PyPI
3843
uses: pypa/gh-action-pypi-publish@release/v1
39-
with:
40-
user: __token__
41-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)