Skip to content

Commit

Permalink
Avoid pushing cpu package to https://download.onnxruntime.ai/ (micros…
Browse files Browse the repository at this point in the history
  • Loading branch information
baijumeswani authored and kleiti committed Mar 22, 2024
1 parent 8203c07 commit e642f28
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 e642f28

Please sign in to comment.