Skip to content

Commit

Permalink
Merge pull request #335 from necusjz/migrate-pypi-release
Browse files Browse the repository at this point in the history
migrate pypi release to ado
  • Loading branch information
necusjz authored Mar 15, 2024
2 parents e26b750 + 272a272 commit b977a93
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 b977a93

Please sign in to comment.