Skip to content

Commit

Permalink
Enable Trusted Publisher for test pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
ScriptAutomate committed Aug 26, 2024
1 parent 6696033 commit 7777468
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ jobs:

Build:
runs-on: ubuntu-latest
environment: testing
permissions:
id-token: write
needs:
- Docs
- PyLint
Expand All @@ -352,7 +355,8 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/
print-hash: true
skip-existing: true
verbose: true
verify-metadata: true

0 comments on commit 7777468

Please sign in to comment.