Skip to content

Commit 5f875d3

Browse files
committed
CI: Switch to PyPI trusted publisher
This replaces using a fixed secret API token that is attached to a single user.
1 parent 408351b commit 5f875d3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
environment:
3939
name: PyPI
4040
url: https://pypi.org/project/python-awips/
41+
permissions:
42+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
4143
runs-on: ubuntu-latest
4244
steps:
4345
- name: Download packages
@@ -47,7 +49,4 @@ jobs:
4749
name: artifact
4850

4951
- name: Publish Package
50-
uses: pypa/gh-action-pypi-publish@v1.4.2
51-
with:
52-
user: __token__
53-
password: ${{ secrets.PYPI_TOKEN }}
52+
uses: pypa/gh-action-pypi-publish@v1.12.4

0 commit comments

Comments
 (0)