From 69cd5a183593e81bfcc44ca57321e44e638c797b Mon Sep 17 00:00:00 2001 From: Zlatko Knezevic Date: Tue, 9 Feb 2016 18:35:00 -0800 Subject: [PATCH] Fix vesion badge looks & upload issue The uploads didn't take into consideration the $CHANNEL variable and badges were ending up in the dev channel. Also, the badge was too short for the version number so fixing the SVG as well. --- resources/images/version_badge.svg | 12 ++++++------ scripts/publish/publish.ps1 | 4 ++-- scripts/publish/publish.sh | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/resources/images/version_badge.svg b/resources/images/version_badge.svg index ae455b8c8..91ae4e5ae 100644 --- a/resources/images/version_badge.svg +++ b/resources/images/version_badge.svg @@ -1,20 +1,20 @@ - + - + - - + + version version - ver_number - ver_number + ver_number + ver_number diff --git a/scripts/publish/publish.ps1 b/scripts/publish/publish.ps1 index 93aaea9c6..ccaa4628d 100644 --- a/scripts/publish/publish.ps1 +++ b/scripts/publish/publish.ps1 @@ -140,10 +140,10 @@ function UploadVersionBadge($badgeFile) $fileName = "windows_$Configuration_$([System.IO.Path]::GetFileName($badgeFile))" Write-Host "Uploading the version badge to Latest" - UploadFile "dev/Binaries/Latest/$filename" $badgeFile + UploadFile "$env:CHANNEL/Binaries/Latest/$filename" $badgeFile Write-Host "Uploading the version badge to $env:DOTNET_CLI_VERSION" - UploadFile "dev/Binaries/$env:DOTNET_CLI_VERSION/$filename" $badgeFile + UploadFile "$env:CHANNEL/Binaries/$env:DOTNET_CLI_VERSION/$filename" $badgeFile return 0 } diff --git a/scripts/publish/publish.sh b/scripts/publish/publish.sh index caaae0036..63bec379d 100755 --- a/scripts/publish/publish.sh +++ b/scripts/publish/publish.sh @@ -194,10 +194,10 @@ upload_version_badge(){ local badgefile=$1 local filename="$OSNAME_$CONFIGURATION_$(basename $badgefile)" echo "Uploading the version badge to Latest" - upload_file_to_blob_storage_azure_cli "dev/Binaries/Latest/$filename" $badgefile + upload_file_to_blob_storage_azure_cli "$CHANNEL/Binaries/Latest/$filename" $badgefile echo "Uploading the version badge to $DOTNET_CLI_VERSION" - upload_file_to_blob_storage_azure_cli "dev/Binaries/$DOTNET_CLI_VERSION/$filename" $badgefile + upload_file_to_blob_storage_azure_cli "$CHANNEL/Binaries/$DOTNET_CLI_VERSION/$filename" $badgefile return 0 }