-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild-package.ps1
More file actions
40 lines (31 loc) · 893 Bytes
/
build-package.ps1
File metadata and controls
40 lines (31 loc) · 893 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#requires -version 5
param (
[string]
[Parameter(Mandatory=$true)]
$SemanticVersion,
[string]
[Parameter(Mandatory=$true)]
$BuildCounter,
[string]
$PreReleaseLabel = "pre",
[switch]
$Publish,
[string]
$NuGetFeed,
[string]
$NuGetApiKey
)
$ErrorActionPreference = "Stop"
$verbose = $PSCmdlet.MyInvocation.BoundParameters["Verbose"]
Import-Module "$PSScriptRoot/Utility/create-package.psm1" -Force
$parameters = @{
PackageDefinitionFile = Resolve-Path (Join-Path "$PSScriptRoot" "EdFi.Installer.AppCommon.nuspec")
Version = $SemanticVersion
Suffix = "$PreReleaseLabel$($BuildCounter.PadLeft(4,'0'))"
OutputDirectory = Resolve-Path $PSScriptRoot
Publish = $Publish
Source = $NuGetFeed
ApiKey = $NuGetApiKey
ToolsPath = "$PSScriptRoot/../../tools"
}
Invoke-CreatePackage @parameters -Verbose:$verbose