Skip to content

Commit

Permalink
Publish script updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasherceg committed Dec 27, 2016
1 parent 12bf415 commit 046e26b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/Tools/build/publish.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
param([String]$version, [String]$apiKey, [String]$server, [String]$branchName, [String]$repoUrl, [String]$nugetRestoreAltSource)
param([String]$version, [String]$apiKey, [String]$server, [String]$branchName, [String]$repoUrl, [String]$nugetRestoreAltSource = "")


### Helper Functions
Expand Down Expand Up @@ -58,7 +58,14 @@ function SetVersion() {
function BuildPackages() {
foreach ($package in $packages) {
cd .\$($package.Directory)
& dotnet restore --source $nugetRestoreAltSource --source https://nuget.org/api/v2/

if ($nugetRestoreAltSource -eq "") {
& dotnet restore
}
else {
& dotnet restore --source $nugetRestoreAltSource --source https://nuget.org/api/v2/
}

& dotnet pack
cd ..
}
Expand Down

0 comments on commit 046e26b

Please sign in to comment.