-
Notifications
You must be signed in to change notification settings - Fork 0
/
PublishNuGetPackages.ps1
27 lines (22 loc) · 1.67 KB
/
PublishNuGetPackages.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
27
param([string] $version)
if(!$version) {
"Version parameter is required. Exiting..."
exit 1
}
try {
Push-Location $PSScriptRoot
dotnet pack -c Release
dotnet nuget push --source "iti-azure-devops" --api-key az --interactive ./Baseline/Audit/bin/Release/ITI.Baseline.Audit.$version.nupkg
dotnet nuget push --source "iti-azure-devops" --api-key az --interactive ./Baseline/Passwords/bin/Release/ITI.Baseline.Passwords.$version.nupkg
dotnet nuget push --source "iti-azure-devops" --api-key az --interactive ./Baseline/RequestTracing/bin/Release/ITI.Baseline.RequestTracing.$version.nupkg
dotnet nuget push --source "iti-azure-devops" --api-key az --interactive ./Baseline/Util/bin/Release/ITI.Baseline.Util.$version.nupkg
dotnet nuget push --source "iti-azure-devops" --api-key az --interactive ./Baseline/ValueObjects/bin/Release/ITI.Baseline.ValueObjects.$version.nupkg
dotnet nuget push --source "iti-azure-devops" --api-key az --interactive ./DDD/Application/bin/Release/ITI.DDD.Application.$version.nupkg
dotnet nuget push --source "iti-azure-devops" --api-key az --interactive ./DDD/Auth/bin/Release/ITI.DDD.Auth.$version.nupkg
dotnet nuget push --source "iti-azure-devops" --api-key az --interactive ./DDD/Core/bin/Release/ITI.DDD.Core.$version.nupkg
dotnet nuget push --source "iti-azure-devops" --api-key az --interactive ./DDD/Domain/bin/Release/ITI.DDD.Domain.$version.nupkg
dotnet nuget push --source "iti-azure-devops" --api-key az --interactive ./DDD/Infrastructure/bin/Release/ITI.DDD.Infrastructure.$version.nupkg
dotnet nuget push --source "iti-azure-devops" --api-key az --interactive ./DDD/Logging/bin/Release/ITI.DDD.Logging.$version.nupkg
} finally {
Pop-Location
}