Skip to content

Commit d207d59

Browse files
Only publish site when merging to default branch
1 parent 2714999 commit d207d59

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/main.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ LogGroup 'Calculate Job Run Conditions:' {
451451
ReleaseType = $releaseType # 'Release', 'Prerelease', 'Cleanup', or 'None'
452452
BuildDocs = $isNotAbandonedPR -and (-not $settings.Build.Docs.Skip)
453453
BuildSite = $isNotAbandonedPR -and (-not $settings.Build.Site.Skip)
454-
PublishSite = $isMergedPR
454+
PublishSite = $isMergedPR -and $isTargetDefaultBranch
455455
}
456456
$settings | Add-Member -MemberType NoteProperty -Name Run -Value $run
457457

0 commit comments

Comments
 (0)