diff --git a/tools/ci_build/github/azure-pipelines/templates/packaging-pipeline-steps.yml b/tools/ci_build/github/azure-pipelines/templates/packaging-pipeline-steps.yml index 50a0d03..600e267 100644 --- a/tools/ci_build/github/azure-pipelines/templates/packaging-pipeline-steps.yml +++ b/tools/ci_build/github/azure-pipelines/templates/packaging-pipeline-steps.yml @@ -12,6 +12,13 @@ parameters: type: string default: "" +variables: +- name: UploadWheel + value: ${{ parameters.UploadWheel}} +- name: BuildType + value: ${{ parameters.BuildType}} + + steps: - template: set-python-manylinux-variables-step.yml @@ -44,7 +51,7 @@ steps: workingDirectory: $(Build.SourcesDirectory) - task: CopyFiles@2 - condition: and(succeeded(), eq(parameters['UploadWheel'], 'yes')) + condition: and(succeeded(), eq(variables.UploadWheel, 'yes')) displayName: 'Copy Python Wheel to: $(Build.ArtifactStagingDirectory)' inputs: SourceFolder: '$(Build.SourcesDirectory)' @@ -81,7 +88,7 @@ steps: displayName: "docker run build.py --wheel_file /torch_ort_src/dist/$whlfilename" - task: AzureCLI@2 - condition: and(succeeded(), eq(parameters['UploadWheel'], 'yes'), eq(parameters['BuildType'], 'nightly')) + condition: and(succeeded(), eq(variables.UploadWheel, 'yes'), eq(variables.BuildType, 'nightly')) inputs: azureSubscription: 'AIInfraBuildOnnxRuntimeOSS' scriptType: 'bash'