Skip to content
This repository was archived by the owner on Apr 8, 2019. It is now read-only.

Commit 00d050b

Browse files
authored
Merge pull request #20 from sharwell/push-source
Fix the Source argument for push.ps1
2 parents 7b16241 + a1e892c commit 00d050b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/push.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
param (
2+
[string]$Source = 'https://www.nuget.org/'
3+
)
4+
15
. .\version.ps1
26

37
If ($Version.EndsWith('-dev')) {
48
$host.ui.WriteErrorLine("Cannot push development version '$Version' to NuGet.")
59
Exit 1
610
}
711

8-
..\.nuget\NuGet.exe 'push' ".\nuget\PublicApiAnalyzer.$Version.nupkg" -Source 'https://www.nuget.org/api/v2/package'
12+
..\.nuget\NuGet.exe 'push' ".\nuget\PublicApiAnalyzer.$Version.nupkg" -Source $Source

0 commit comments

Comments
 (0)