From b07d7939a8a907f48dbe20e5399b235f8ecf7ce0 Mon Sep 17 00:00:00 2001 From: David Watson Date: Mon, 16 Mar 2026 17:43:23 +0000 Subject: [PATCH] Logging --- releaseDocs.ps1 | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/releaseDocs.ps1 b/releaseDocs.ps1 index 48412686c4..fe15818608 100644 --- a/releaseDocs.ps1 +++ b/releaseDocs.ps1 @@ -11,7 +11,7 @@ $TEMP_REPO_DIR=[System.IO.Path]::GetFullPath("$psscriptroot/../docs-gh-pages") $remote_repo="https://github-actions:${TOKEN}@github.com/rws/studio-api-docs.git" -write-host "Cloning the repo $remote_repo with the gh-pages branch" +write-host "==> Cloning the repo $remote_repo with the gh-pages branch" git clone $remote_repo --branch gh-pages $TEMP_REPO_DIR Set-Location $TEMP_REPO_DIR @@ -26,13 +26,17 @@ if($checkBranch){ git checkout -b gh-pages_temp $items = Get-ChildItem $keepVersions = @("15.2", "16.1", "16.2", "17.0", "17.1", "17.2", "18.0", "18.1") -foreach ($item in $items){ - if ($item.Name -notin $keepVersions){ - git rm $item -r - } +foreach ($item in $items) +{ + write-host "==> Checking $($item.Name) for deletion" + if ($item.Name -notin $keepVersions) + { + write-host "==> Deleting $($item.Name)" + git rm $item -r + } } -write-host "Copy documentation into the repo" - +write-host "==>Copy documentation into the repo" + Copy-Item "$SOURCE_DIR\_site\*" .\ -Recurse -force write-host "Push the new docs to the remote branch"