Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0631d41

Browse files
Enable Trusted Publisher for test pypi (#50)
1 parent 6696033 commit 0631d41

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/testing.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ jobs:
326326

327327
Build:
328328
runs-on: ubuntu-latest
329+
environment: testing
330+
permissions:
331+
id-token: write
329332
needs:
330333
- Docs
331334
- PyLint
@@ -352,7 +355,8 @@ jobs:
352355
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
353356
uses: pypa/gh-action-pypi-publish@release/v1
354357
with:
355-
user: __token__
356-
password: ${{ secrets.TEST_PYPI_TOKEN }}
357358
repository_url: https://test.pypi.org/legacy/
358359
print-hash: true
360+
skip-existing: true
361+
verbose: true
362+
verify-metadata: true

0 commit comments

Comments
 (0)