[Fix] TSAUpload task must be in building stage (#20098)

### Description
In #20085, TSAUpload was in testing stage so main branch failed.
This commit is contained in:
Yi Zhang 2024-03-28 03:20:57 +08:00 committed by GitHub
parent c8676ffbff
commit 4df9d16f98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -204,6 +204,17 @@ stages:
inputs:
AnalyzeTargetGlob: '+:file|$(Build.ArtifactStagingDirectory)\**\*.dll;-:file|$(Build.ArtifactStagingDirectory)\**\DirectML.dll'
- task: TSAUpload@2
displayName: 'TSA upload'
condition: and (succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
GdnPublishTsaOnboard: false
GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa'
- template: component-governance-component-detection-steps.yml
parameters:
condition: 'succeeded'
- stage: Win_py_${{ parameters.EP_NAME }}_Wheels_${{ replace(parameters.PYTHON_VERSION,'.','_') }}_Tests
dependsOn: Win_py_${{ parameters.EP_NAME }}_Wheels_${{ replace(parameters.PYTHON_VERSION,'.','_') }}_Build
jobs: