diff --git a/eng/pipelines/templates/jobs/pypi/release-pypi.yml b/eng/pipelines/templates/jobs/pypi/release-pypi.yml index 2d533bfed..38f3ca44f 100644 --- a/eng/pipelines/templates/jobs/pypi/release-pypi.yml +++ b/eng/pipelines/templates/jobs/pypi/release-pypi.yml @@ -53,14 +53,21 @@ jobs: Approvers: ${{ coalesce(variables['Build.RequestedForEmail'], 'azuresdk@microsoft.com') }} ServiceEndpointUrl: 'https://api.esrp.microsoft.com' MainPublisher: 'ESRPRELPACMANTEST' + + - task: PipAuthenticate@1 + displayName: 'Pip Authenticate to feed: public/azure-sdk-for-python' + inputs: + artifactFeeds: public/azure-sdk-for-python + onlyAddExtraIndex: false - task: TwineAuthenticate@0 - displayName: 'Authenticate to feed: public/azure-sdk-for-python' + displayName: 'Twine Authenticate to feed: public/azure-sdk-for-python' inputs: artifactFeeds: public/azure-sdk-for-python - script: | set -e + python -m pip install twine twine upload --repository public/azure-sdk-for-python --config-file $(PYPIRC_PATH) $(Pipeline.Workspace)/esrp-release/${{ parameters.ServerName }}/*.whl echo "Uploaded whl to devops feed" displayName: 'Publish package to feed: public/azure-sdk-for-python'