Skip to content

Commit

Permalink
chore(python-sdk): enable PyPI trusted publishing (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Jan 29, 2024
2 parents 66c37bb + 8b7e252 commit 747fc56
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions config/clients/python/template/.github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
needs: [test]

permissions:
# Required for PyPI trusted publishing
id-token: write

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
Expand All @@ -67,9 +71,6 @@ jobs:
- name: Publish package
uses: pypa/gh-action-pypi-publish@2f6f737ca5f74c637829c0f5c3acd0e29ea5e8bf
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

create-release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 747fc56

Please sign in to comment.