Add UsePython Task in Nuget Publish workflow (#21144)

### Description
Otherwise it would fail in 

b95982e588/tools/ci_build/github/azure-pipelines/publish-nuget.yml (L78-L81)



### Motivation and Context
The Windows CPU image is migrated  to managed image


### Verification Link
https://dev.azure.com/aiinfra/Lotus/_build?definitionId=1313
This commit is contained in:
Yi Zhang 2024-06-24 13:36:13 +08:00 committed by GitHub
parent b95982e588
commit 5b5ce0bfb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,6 +29,12 @@ stages:
- checkout: self
submodules: false
- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
addToPath: true
- template: templates/set-version-number-variables-step.yml
- script: mkdir "$(Build.BinariesDirectory)\nuget-artifact\final-package"