mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 06:47:57 -05:00
CI: Switch to PyPI trusted publisher
This replaces using a fixed secret API token that is attached to a single user.
This commit is contained in:
parent
408351b500
commit
5f875d32ec
1 changed files with 3 additions and 4 deletions
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
|
@ -38,6 +38,8 @@ jobs:
|
|||
environment:
|
||||
name: PyPI
|
||||
url: https://pypi.org/project/python-awips/
|
||||
permissions:
|
||||
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download packages
|
||||
|
@ -47,7 +49,4 @@ jobs:
|
|||
name: artifact
|
||||
|
||||
- name: Publish Package
|
||||
uses: pypa/gh-action-pypi-publish@v1.4.2
|
||||
with:
|
||||
user: __token__
|
||||
password: ${{ secrets.PYPI_TOKEN }}
|
||||
uses: pypa/gh-action-pypi-publish@v1.12.4
|
||||
|
|
Loading…
Add table
Reference in a new issue