Skip to content

Commit 5b5ce0b

Browse files
authored
Add UsePython Task in Nuget Publish workflow (#21144)
### Description Otherwise it would fail in https://github.com/microsoft/onnxruntime/blob/b95982e588e2d433958aa9aa82557b714ec4e3de/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
1 parent b95982e commit 5b5ce0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/ci_build/github/azure-pipelines/publish-nuget.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ stages:
2929
3030
- checkout: self
3131
submodules: false
32+
33+
- task: UsePythonVersion@0
34+
inputs:
35+
versionSpec: '3.9'
36+
addToPath: true
37+
3238
- template: templates/set-version-number-variables-step.yml
3339

3440
- script: mkdir "$(Build.BinariesDirectory)\nuget-artifact\final-package"

0 commit comments

Comments
 (0)