Skip to content

Commit b71a2e0

Browse files
committed
Fix NuGet push command to use lowercase project names and add --skip-duplicate option
1 parent 9a2388d commit b71a2e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/default.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ Task Package -depends Build {
107107
Task Deploy -depends Package {
108108

109109
foreach($project in $projects) {
110-
Exec { dotnet nuget push "..\dist\$project.*.nupkg" -k $apiKey -sk $apiKey -s "https://api.nuget.org/v3/index.json" }
110+
Exec { dotnet nuget push "../dist/$($project.ToLower()).*.nupkg" -k $apiKey -sk $apiKey -s "https://api.nuget.org/v3/index.json" --skip-duplicate }
111111
}
112112

113-
Exec { dotnet nuget push "..\dist\nhapi.3.*.nupkg" -k $apiKey -sk $apiKey -s "https://api.nuget.org/v3/index.json" }
113+
Exec { dotnet nuget push "../dist/nhapi.3.*.nupkg" -k $apiKey -sk $apiKey -s "https://api.nuget.org/v3/index.json" }
114114
}

0 commit comments

Comments
 (0)