mirror of
https://github.com/Unidata/python-awips.git
synced 2025-02-23 14:57:56 -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:
|
environment:
|
||||||
name: PyPI
|
name: PyPI
|
||||||
url: https://pypi.org/project/python-awips/
|
url: https://pypi.org/project/python-awips/
|
||||||
|
permissions:
|
||||||
|
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Download packages
|
- name: Download packages
|
||||||
|
@ -47,7 +49,4 @@ jobs:
|
||||||
name: artifact
|
name: artifact
|
||||||
|
|
||||||
- name: Publish Package
|
- name: Publish Package
|
||||||
uses: pypa/gh-action-pypi-publish@v1.4.2
|
uses: pypa/gh-action-pypi-publish@v1.12.4
|
||||||
with:
|
|
||||||
user: __token__
|
|
||||||
password: ${{ secrets.PYPI_TOKEN }}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue