Skip to content

Commit

Permalink
[INFRA-2328] PyPI: fix python client upload (#11931)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 4be2ab478f4fc116050d0f8e9d233eab6dc8be8c
  • Loading branch information
Ira W. Snyder authored and Descartes Labs Build committed Jun 12, 2023
1 parent 0043f2f commit 7cc3929
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ jobs:
python3 setup.py bdist_wheel
python3 setup.py sdist
# Upload the Python wheel packages to PyPI
# Upload the Python wheel packages to PyPI using an API Token
# https://pypi.org/help/#apitoken
# https://github.com/descarteslabs/paas-infrastructure/blob/main/foundation/operations/pypi.tf
- name: Upload to PyPI
if: inputs.publish
env:
TWINE_REPOSITORY: ${{ inputs.repository }}
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
TWINE_REPOSITORY: "${{ inputs.repository }}"
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: "${{ secrets.PYPI_API_TOKEN }}"
run: |
twine upload dist/*

0 comments on commit 7cc3929

Please sign in to comment.