Skip to content

Commit

Permalink
updating build script
Browse files Browse the repository at this point in the history
  • Loading branch information
sayedihashimi committed Mar 12, 2016
1 parent 86f435c commit ddeb38b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions build.ps1
Expand Up @@ -170,6 +170,25 @@ function RestoreNuGetPackages(){
}
}
}
function PublishNuGetPackage{
[cmdletbinding()]
param(
[Parameter(Mandatory=$true,ValueFromPipeline=$true)]
[string]$nugetPackages,

[Parameter(Mandatory=$true)]
$nugetApiKey
)
process{
foreach($nugetPackage in $nugetPackages){
$pkgPath = (get-item $nugetPackage).FullName
$cmdArgs = @('push',$pkgPath,$nugetApiKey,'-NonInteractive')

'Publishing nuget package with the following args: [nuget.exe {0}]' -f ($cmdArgs -join ' ') | Write-Verbose
&(Get-Nuget) $cmdArgs
}
}
}
function CopyStaticFilesToOutputDir{
[cmdletbinding()]
param()
Expand Down

0 comments on commit ddeb38b

Please sign in to comment.