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
|
||||
}
|
||||
|
||||
function UploadInstallers($msiFile)
|
||||
function UploadInstallers($installerFile)
|
||||
{
|
||||
$fileName = [System.IO.Path]::GetFileName($msiFile)
|
||||
$msiBlob = "$env:CHANNEL/Installers/$env:DOTNET_CLI_VERSION/$fileName"
|
||||
$fileName = [System.IO.Path]::GetFileName($installerFile)
|
||||
$installerBlob = "$env:CHANNEL/Installers/$env:DOTNET_CLI_VERSION/$fileName"
|
||||
|
||||
if(-Not (UploadFile $msiBlob $msiFile))
|
||||
if(-Not (UploadFile $installerBlob $installerFile))
|
||||
{
|
||||
return -1
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue