Sync eng/common directory with azure-sdk-tools for PR 1298 (#1262)
* Update latest folder with one index.html includes the redirect links * Update the redirect links and remove everything in latest * Address feedback * Have the entire copy for latest GA. Co-authored-by: Sima Zhu <sizhu@microsoft.com>
This commit is contained in:
parent
9d9f1e6f4c
commit
49c81c20be
@ -216,13 +216,15 @@ function Upload-Blobs
|
||||
|
||||
LogDebug "Uploading $($PkgName)/$($DocVersion) to $($DocDest)..."
|
||||
& $($AzCopy) cp "$($DocDir)/**" "$($DocDest)/$($PkgName)/$($DocVersion)$($SASKey)" --recursive=true --cache-control "max-age=300, must-revalidate"
|
||||
|
||||
|
||||
LogDebug "Handling versioning files under $($DocDest)/$($PkgName)/versioning/"
|
||||
$versionsObj = (Update-Existing-Versions -PkgName $PkgName -PkgVersion $DocVersion -DocDest $DocDest)
|
||||
|
||||
# we can safely assume we have AT LEAST one version here. Reason being we just completed Update-Existing-Versions
|
||||
$latestVersion = ($versionsObj.SortedVersionArray | Select-Object -First 1).RawVersion
|
||||
|
||||
$latestVersion = $versionsObj.LatestGAPackage
|
||||
if (!$latestVersion) {
|
||||
$latestVersion = $versionsObj.LatestPreviewPackage
|
||||
}
|
||||
LogDebug "Fetching the latest version $latestVersion"
|
||||
|
||||
if ($UploadLatest -and ($latestVersion -eq $DocVersion))
|
||||
{
|
||||
LogDebug "Uploading $($PkgName) to latest folder in $($DocDest)..."
|
||||
@ -230,7 +232,6 @@ function Upload-Blobs
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($PublishGithubIODocsFn -and (Test-Path "Function:$PublishGithubIODocsFn"))
|
||||
{
|
||||
&$PublishGithubIODocsFn -DocLocation $DocLocation -PublicArtifactLocation $PublicArtifactLocation
|
||||
|
||||
Loading…
Reference in New Issue
Block a user