@@ -17,10 +17,17 @@ steps:
1717 filePath : tools/azurePipelinesBuild.ps1
1818 pwsh : ${{ parameters.pwsh }}
1919
20+ - task : PublishTestResults@2
21+ displayName : Publish test results
22+ inputs :
23+ testRunner : VSTest
24+ testResultsFiles : ' **/*.trx'
25+ condition : succeededOrFailed()
26+
2027# NOTE: We zip the artifacts because they're ~20 MB compressed, but ~300 MB raw,
2128# and we have limited pipeline artifact storage space.
2229- task : ArchiveFiles@2
23- displayName : Zip pipeline artifacts
30+ displayName : Zip build output
2431 inputs :
2532 rootFolderOrFile : module
2633 includeRootFolder : false
@@ -30,11 +37,17 @@ steps:
3037
3138- publish : PowerShellEditorServices-Build.zip
3239 artifact : PowerShellEditorServices-Build-$(System.JobId)
33- displayName : Publish unsigned pipeline artifacts
40+ displayName : Publish build output archive
3441
35- - task : PublishTestResults @2
36- displayName : Publish test results
42+ - task : ArchiveFiles @2
43+ displayName : Zip sources with `project.assets.json`
3744 inputs :
38- testRunner : VSTest
39- testResultsFiles : ' **/*.trx'
40- condition : succeededOrFailed()
45+ rootFolderOrFile : src
46+ includeRootFolder : false
47+ archiveType : zip
48+ archiveFile : PowerShellEditorServices-Sources.zip
49+ verbose : true
50+
51+ - publish : PowerShellEditorServices-Sources.zip
52+ artifact : PowerShellEditorServices-Sources-$(System.JobId)
53+ displayName : Publish sources archive
0 commit comments