Skip to content

Commit 595d58b

Browse files
committed
switch to trusted publishing for pypi
1 parent 34cd3c5 commit 595d58b

File tree

2 files changed

+5
-39
lines changed

2 files changed

+5
-39
lines changed

.github/workflows/package-publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ permissions:
1111
jobs:
1212
deploy_pypi:
1313
runs-on: ubuntu-latest
14-
environment: prod
14+
environment:
15+
name: prod
16+
url: https://pypi.org/p/hhd
17+
permissions:
18+
id-token: write
1519

1620
steps:
1721
- uses: actions/checkout@v3
@@ -32,9 +36,6 @@ jobs:
3236
run: python -m build -s
3337
- name: Publish package
3438
uses: pypa/gh-action-pypi-publish@release/v1
35-
with:
36-
user: __token__
37-
password: ${{ secrets.PYPI_API_TOKEN }}
3839

3940
deploy_aur:
4041
runs-on: ubuntu-latest

.github/workflows/publish-pipy.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)