Update publish.ps1
Some bug fixes to upload the bundle correctly to the blob storage.
This commit is contained in:
parent
41fd92222d
commit
d18ff2f421
1 changed files with 6 additions and 6 deletions
|
@ -114,20 +114,20 @@ function UploadBinaries($zipFile)
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
function UploadInstallers($msiFile)
|
function UploadInstallers($installerFile)
|
||||||
{
|
{
|
||||||
$fileName = [System.IO.Path]::GetFileName($msiFile)
|
$fileName = [System.IO.Path]::GetFileName($installerFile)
|
||||||
$msiBlob = "$env:CHANNEL/Installers/$env:DOTNET_CLI_VERSION/$fileName"
|
$installerBlob = "$env:CHANNEL/Installers/$env:DOTNET_CLI_VERSION/$fileName"
|
||||||
|
|
||||||
if(-Not (UploadFile $msiBlob $msiFile))
|
if(-Not (UploadFile $installerBlob $installerFile))
|
||||||
{
|
{
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Updating the latest dotnet installer for windows.."
|
Write-Host "Updating the latest dotnet installer for windows.."
|
||||||
$msiBlobLatest = "$env:CHANNEL/Installers/Latest/dotnet-win-x64.latest.msi"
|
$installerBlobLatest = "$env:CHANNEL/Installers/Latest/dotnet-win-x64.latest.exe"
|
||||||
|
|
||||||
if(-Not (UploadFile $msiBlobLatest $msiFile))
|
if(-Not (UploadFile $installerBlobLatest $installerFile))
|
||||||
{
|
{
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue