Skip to content

Commit

Permalink
build: migrate pypi release to ado
Browse files Browse the repository at this point in the history
  • Loading branch information
necusjz committed Mar 15, 2024
1 parent e26b750 commit 272a272
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,24 +189,3 @@ jobs:
prerelease: ${{ contains(env.TAG, 'rc') }}
files: |
dist/*
- name: "Azure Log in"
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: "Publish package to PyPI"
run: |
pip install twine>=1.11.0
export TWINE_USERNAME=${{ secrets.PYPI_USERNAME }}
export TWINE_PASSWORD=$(az keyvault secret show --vault-name ${{ secrets.AZURE_KEYVAULE_USERNAME }} --name ${{ secrets.AZURE_PYPI_PASSWORD_NAME }} --query value -otsv)
export TWINE_REPOSITORY_URL=https://upload.pypi.org/legacy/
twine upload dist/*
- name: 'Azure Log out'
uses: azure/CLI@v1
with:
inlineScript: |
az logout
az cache purge
az account clear

0 comments on commit 272a272

Please sign in to comment.