From 272a2729eb0f633fe5af459c28460d0fdd40d33c Mon Sep 17 00:00:00 2001 From: necusjz Date: Fri, 15 Mar 2024 15:45:02 +0800 Subject: [PATCH] build: migrate pypi release to ado --- .github/workflows/python-publish.yml | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 52225ba4..96de4453 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -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