-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.ps1
26 lines (20 loc) · 901 Bytes
/
build.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
param(
# The version of the nuget package.
[Parameter(Mandatory = $False)]
[string] $Version = '0.0.1',
# True when building from master. If False, '-prerelease' is appended to the package version.
[Parameter(Mandatory = $False)]
[bool] $IsDefaultBranch = $False,
[Parameter(Mandatory = $False)]
[string] $BranchName = "dev",
# A url to a NuGet feed the package will be published to.
[Parameter(Mandatory = $False)]
[string] $NugetFeedToPublishTo,
# The Api Key that allows pushing to the feed passed in as -NugetFeedToPublishTo.
[Parameter(Mandatory = $False)]
[string] $NugetFeedApiKey
)
$ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue'
. "$PSScriptRoot\.build\_init.ps1"
Build -IsDefaultBranch $IsDefaultBranch -BranchName $BranchName -NugetFeedToPublishTo $NugetFeedToPublishTo -NugetFeedApiKey $NugetFeedApiKey