Skip to content

Commit a1fddbb

Browse files
committed
Update permissions
1 parent 2565fb8 commit a1fddbb

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,15 @@ jobs:
4848
upload_pypi:
4949
needs: [build_artifacts]
5050
runs-on: ubuntu-latest
51+
environment: pypi
52+
permissions:
53+
# IMPORTANT: this permission is mandatory for Trusted Publishing
54+
id-token: write
5155
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
5256
steps:
5357
- uses: actions/download-artifact@v4
5458
with:
5559
name: releases
5660
path: dist
57-
- uses: pypa/gh-action-pypi-publish@v1.12.4
58-
with:
59-
user: __token__
60-
password: ${{ secrets.pypi_password }}
61-
# To test: repository_url: https://test.pypi.org/legacy/
61+
- name: Publish package distributions to PyPI
62+
uses: pypa/gh-action-pypi-publish@v1.12.4

0 commit comments

Comments
 (0)