Skip to content

Commit

Permalink
Nightly docs publish should honor skipPublishDocMs (Azure#45077)
Browse files Browse the repository at this point in the history
  • Loading branch information
JimSuplizio authored and tejasm-microsoft committed Jul 22, 2024
1 parent 8208f32 commit 8814cae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/ApiDocGeneration/Generate-Api-Docs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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}"
Expand Down
3 changes: 2 additions & 1 deletion eng/pipelines/templates/stages/archetype-net-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down

0 comments on commit 8814cae

Please sign in to comment.