Skip to content

Commit 59f75ce

Browse files
committed
REL: Update pypi uploading workflow
1 parent 65d6696 commit 59f75ce

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/release.yml

+8-5
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,19 @@ jobs:
5353
upload_pypi:
5454
needs: [ build_wheels_and_sdist ]
5555
runs-on: ubuntu-20.04
56+
environment:
57+
name: pypi
58+
url: https://pypi.org/p/pyhtnorm
59+
permissions:
60+
id-token: write
5661
steps:
57-
- name: Pull built wheels and sdist
58-
uses: actions/download-artifact@v2
62+
- name: Pull built wheel and sdist
63+
uses: actions/download-artifact@v3
5964
with:
6065
name: wheels_and_sdist
6166
path: wheelhouse
6267

6368
- name: Publish to PyPI
64-
uses: pypa/gh-action-pypi-publish@v1.4.2
69+
uses: pypa/gh-action-pypi-publish@v1.8.5
6570
with:
66-
user: __token__
67-
password: ${{ secrets.PYPI_TOKEN }}
6871
packages_dir: wheelhouse

0 commit comments

Comments
 (0)