Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feature/azure-pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
cafour committed Apr 12, 2021
2 parents 2458445 + 4de2060 commit 86307a1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Tools/CopyBetweenNugetFeeds.ps1
Expand Up @@ -64,13 +64,13 @@ foreach ($package in $packages) {

try {
$webClient.DownloadFile($snupkgUrl, $snupkgFile)
$snupkgDownloaded = true;
$snupkgDownloaded = $true;
}catch {
Write-Host "No snupkg package found!"
$snupkgDownloaded = false;
$snupkgDownloaded = $false;
}

if ($snupkgDownloaded==true){
if ($snupkgDownloaded -eq $true){
Write-Host "Uploading snupkg package..."
& .\Tools\nuget.exe push $snupkgFile -source $server -apiKey $apiKey
Remove-Item $nupkgFile
Expand Down
6 changes: 3 additions & 3 deletions src/Tools/CopyPackageBetweenNugetFeeds.ps1
Expand Up @@ -29,13 +29,13 @@ Param(

try {
$webClient.DownloadFile($snupkgUrl, $snupkgFile)
$snupkgDownloaded = true;
$snupkgDownloaded = $true;
}catch {
Write-Host "No snupkg package found!"
$snupkgDownloaded = false;
$snupkgDownloaded = $false;
}

if ($snupkgDownloaded==true){
if ($snupkgDownloaded -eq $true){
Write-Host "Uploading snupkg package..."
& .\Tools\nuget.exe push $snupkgFile -source $server -apiKey $apiKey
Remove-Item $nupkgFile
Expand Down
4 changes: 4 additions & 0 deletions src/Tools/build/publish.ps1
Expand Up @@ -173,6 +173,10 @@ if ($versionWithoutPre.Contains("-")) {
$versionWithoutPre = $versionWithoutPre.Substring(0, $versionWithoutPre.IndexOf("-"))
}

if ($branchName.StartsWith("refs/heads/") -eq $true) {
$branchName = $branchName.Substring("refs/heads/".Length)
}

CleanOldGeneratedPackages;
RestoreSignClient;
GitCheckout;
Expand Down

0 comments on commit 86307a1

Please sign in to comment.