Publish only the Kalsa reader projection
This commit is contained in:
parent
f6ec266d09
commit
4db77bf2d0
6 changed files with 177 additions and 13 deletions
|
|
@ -11,7 +11,7 @@ if (-not $RepositoryRoot) {
|
|||
}
|
||||
$repoFull = [System.IO.Path]::GetFullPath($RepositoryRoot).TrimEnd('\', '/')
|
||||
if (-not $ContentRoot) {
|
||||
$ContentRoot = Join-Path $repoFull "Kalsa"
|
||||
$ContentRoot = Join-Path $repoFull "Kalsa\Public"
|
||||
}
|
||||
$contentFull = [System.IO.Path]::GetFullPath($ContentRoot).TrimEnd('\', '/')
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ if (-not (Test-Path -LiteralPath $repoFull -PathType Container)) {
|
|||
throw "Repository root not found: $repoFull"
|
||||
}
|
||||
if (-not (Test-Path -LiteralPath $contentFull -PathType Container)) {
|
||||
throw "Canonical publication root not found: $contentFull"
|
||||
throw "Reader publication root not found: $contentFull"
|
||||
}
|
||||
if (-not $contentFull.StartsWith($repoFull + [System.IO.Path]::DirectorySeparatorChar, [System.StringComparison]::OrdinalIgnoreCase)) {
|
||||
throw "Publication root must remain inside the repository root"
|
||||
|
|
@ -47,8 +47,8 @@ if (-not $SkipEntrypointCheck) {
|
|||
}
|
||||
else {
|
||||
$launcherText = Get-Content -Raw -LiteralPath $launcher -Encoding utf8
|
||||
if ($launcherText -notmatch '(?s)--contentDir.{0,80}["'']Kalsa["'']') {
|
||||
$errors += "Quartz launcher does not bind --contentDir to Kalsa"
|
||||
if ($launcherText -notmatch '(?s)--contentDir.{0,80}["'']Kalsa/Public["'']') {
|
||||
$errors += "Quartz launcher does not bind --contentDir to Kalsa/Public"
|
||||
}
|
||||
}
|
||||
if (-not (Test-Path -LiteralPath $workflow -PathType Leaf)) {
|
||||
|
|
@ -56,8 +56,8 @@ if (-not $SkipEntrypointCheck) {
|
|||
}
|
||||
else {
|
||||
$workflowText = Get-Content -Raw -LiteralPath $workflow -Encoding utf8
|
||||
if ($workflowText -notmatch '(?m)^\s*content-dir:\s*Kalsa\s*$') {
|
||||
$errors += "Quartz deployment workflow does not bind content-dir to Kalsa"
|
||||
if ($workflowText -notmatch '(?m)^\s*content-dir:\s*Kalsa/Public\s*$') {
|
||||
$errors += "Quartz deployment workflow does not bind content-dir to Kalsa/Public"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -66,4 +66,4 @@ if ($errors.Count -gt 0) {
|
|||
throw "Publication-boundary verification failed:`n- $($errors -join "`n- ")"
|
||||
}
|
||||
|
||||
Write-Output "Publication boundary passed: only $contentFull is admitted as canonical site input."
|
||||
Write-Output "Publication boundary passed: only $contentFull is admitted as reader-site input."
|
||||
|
|
|
|||
Loading…
Reference in a new issue