From 8814caee3dafe1c1c2c56b5051a3481e3bed42e4 Mon Sep 17 00:00:00 2001 From: James Suplizio Date: Thu, 18 Jul 2024 09:36:08 -0700 Subject: [PATCH] Nightly docs publish should honor skipPublishDocMs (#45077) --- doc/ApiDocGeneration/Generate-Api-Docs.ps1 | 4 ++-- eng/pipelines/templates/stages/archetype-net-release.yml | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/ApiDocGeneration/Generate-Api-Docs.ps1 b/doc/ApiDocGeneration/Generate-Api-Docs.ps1 index 57f4823b4b0ca..86f98eba4b1c2 100644 --- a/doc/ApiDocGeneration/Generate-Api-Docs.ps1 +++ b/doc/ApiDocGeneration/Generate-Api-Docs.ps1 @@ -50,7 +50,7 @@ Param ( ) function Log-Warning($message) { - Write-Host "##vso[task.logissue type=warning]$message" + Write-Host "##vso[task.logissue type=warning;]$message" } function UpdateDocIndexFiles([string]$docPath, [string] $mainJsPath) { @@ -140,7 +140,7 @@ if ($LibType -eq 'client') { } Write-Verbose "Remove all unneeded artifacts from build output directory" -Remove-Item –Path "${ApiDir}/*" -Include * -Exclude "${ArtifactName}.dll", "${ArtifactName}.xml" -Recurse -Force +Remove-Item -Path "${ApiDir}/*" -Include * -Exclude "${ArtifactName}.dll", "${ArtifactName}.xml" -Recurse -Force Write-Verbose "Initialize Frameworks File" & "${MDocTool}" fx-bootstrap "${FrameworkDir}" diff --git a/eng/pipelines/templates/stages/archetype-net-release.yml b/eng/pipelines/templates/stages/archetype-net-release.yml index 4465fb157c0ef..fbb4e076b5475 100644 --- a/eng/pipelines/templates/stages/archetype-net-release.yml +++ b/eng/pipelines/templates/stages/archetype-net-release.yml @@ -334,7 +334,8 @@ stages: parameters: PackageInfoLocations: - ${{ each artifact in parameters.Artifacts }}: - - $(Pipeline.Workspace)/${{parameters.ArtifactName}}/PackageInfo/${{artifact.name}}.json + - ${{if ne(artifact.skipPublishDocMs, 'true')}}: + - $(Pipeline.Workspace)/${{parameters.ArtifactName}}/PackageInfo/${{artifact.name}}.json WorkingDirectory: $(System.DefaultWorkingDirectory) TargetDocRepoOwner: ${{parameters.TargetDocRepoOwner}} TargetDocRepoName: ${{parameters.TargetDocRepoName}}