Skip to content

Commit

Permalink
Avoid pushing cpu package to https://download.onnxruntime.ai/ (#17238)
Browse files Browse the repository at this point in the history
  • Loading branch information
baijumeswani committed Aug 21, 2023
1 parent ced0cfb commit aae9a52
Showing 1 changed file with 0 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
trigger: none

variables:
- name: isMain
value: ${{ eq(variables['Build.SourceBranch'], 'refs/heads/main') }}
- name: finalStorage
${{ if eq(variables['isMain'], 'true') }}:
value: '--final_storage'
${{ else }}:
value: ''

resources:
repositories:
- repository: manylinux
Expand Down Expand Up @@ -39,14 +30,6 @@ stages:
PythonVersion: '3.11'

steps:
- task: CmdLine@2
displayName: 'check variables'
inputs:
script: |
echo "Branch is "${{ variables['Build.SourceBranch'] }} && \
echo "isMain is "${{ variables['isMain'] }} && \
echo "final_storage is "${{ variables['finalStorage'] }}
- checkout: self
clean: true
submodules: recursive
Expand Down Expand Up @@ -102,17 +85,6 @@ stages:
inputs:
ArtifactName: onnxruntime_training_cpu

- task: CmdLine@2
condition: succeeded()
displayName: 'Upload wheel'
inputs:
script: |
files=($(Build.ArtifactStagingDirectory)/Release/dist/*.whl) && \
echo ${files[0]} && \
echo ${{ variables['finalStorage'] }} && \
tools/ci_build/upload_python_package_to_azure_storage.py \
--python_wheel_path ${files[0]} ${{ variables['finalStorage'] }}
- template: templates/component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
Expand Down

0 comments on commit aae9a52

Please sign in to comment.