Fix VMR artifact publishing (#19212)

This commit is contained in:
Djuradj Kurepa 2024-03-27 13:07:39 +01:00 committed by GitHub
parent d3df44dc39
commit 5b126d7851
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -136,16 +136,10 @@ jobs:
artifactName: $(Agent.JobName)_BuildLogs_Attempt$(System.JobAttempt)
- output: pipelineArtifact
path: $(Build.ArtifactStagingDirectory)/publishing
artifact: $(Agent.JobName)_Artifacts
displayName: Publish Artifacts
condition: and(succeededOrFailed(), eq(variables['hasAssets'], 'true'))
targetPath: $(sourcesPath)/artifacts/assets/Release/
artifactName: $(Agent.JobName)_Artifacts
- ${{ if ne(parameters.buildSourceOnly, 'true') }}:
- output: pipelineArtifact
displayName: Publish Packages
targetPath: $(sourcesPath)/artifacts/packages/Release/
artifactName: $(Agent.JobName)_Packages
condition: always()
- ${{ if not(parameters.isBuiltFromVmr) }}:
- output: pipelineArtifact
@ -458,7 +452,3 @@ jobs:
SourceFolder: $(sourcesPath)/artifacts/packages
TargetFolder: $(Build.ArtifactStagingDirectory)/publishing/packages
displayName: Copy packages to Artifact Staging Directory
- publish: $(Build.ArtifactStagingDirectory)/publishing
artifact: $(Agent.JobName)_Artifacts
displayName: Publish Artifacts