2017-02-10 15:57:20 +00:00
|
|
|
param([switch]$nopush)
|
2017-02-10 15:55:16 +00:00
|
|
|
|
2017-02-08 21:09:06 +00:00
|
|
|
New-Item -Path publish -Type directory -Force | Out-Null
|
|
|
|
|
2017-02-10 12:05:10 +00:00
|
|
|
$version = GitVersion.exe | Out-String | ConvertFrom-Json
|
2017-02-08 21:09:06 +00:00
|
|
|
$nugetkey = Get-Content .nuget.apikey
|
|
|
|
|
|
|
|
|
|
|
|
Write-Host "Publishing version $($version.NuGetVersion) using API key $($nugetkey)"-Foreground Cyan
|
|
|
|
|
|
|
|
|
2017-02-10 15:33:05 +00:00
|
|
|
Write-Host "Packing Tapeti.Annotations.csproj" -Foreground Blue
|
2017-02-10 15:55:16 +00:00
|
|
|
NuGet.exe pack Tapeti.Annotations\Tapeti.Annotations.csproj -OutputDir publish -Version $version.NuGetVersion -Properties depversion="$($version.NuGetVersion)"
|
2017-02-10 15:33:05 +00:00
|
|
|
|
2017-02-08 21:09:06 +00:00
|
|
|
Write-Host "Packing Tapeti.csproj" -Foreground Blue
|
2017-02-10 15:55:16 +00:00
|
|
|
NuGet.exe pack Tapeti\Tapeti.csproj -OutputDir publish -Version $version.NuGetVersion -Properties depversion="$($version.NuGetVersion)"
|
2017-02-08 21:09:06 +00:00
|
|
|
|
|
|
|
Write-Host "Packing Tapeti.Flow.csproj" -Foreground Blue
|
2017-02-10 15:55:16 +00:00
|
|
|
NuGet.exe pack Tapeti.Flow\Tapeti.Flow.csproj -OutputDir publish -Version $version.NuGetVersion -Properties depversion="$($version.NuGetVersion)"
|
2017-02-08 21:09:06 +00:00
|
|
|
|
|
|
|
Write-Host "Packing Tapeti.SimpleInjector.csproj" -Foreground Blue
|
2017-02-10 15:55:16 +00:00
|
|
|
NuGet.exe pack Tapeti.SimpleInjector\Tapeti.SimpleInjector.csproj -OutputDir publish -Version $version.NuGetVersion -Properties depversion="$($version.NuGetVersion)"
|
2017-02-08 21:09:06 +00:00
|
|
|
|
|
|
|
|
2017-02-10 15:55:16 +00:00
|
|
|
if ($nopush -eq $false)
|
|
|
|
{
|
|
|
|
Write-Host "Pushing Tapeti.Annotations.csproj" -Foreground Blue
|
|
|
|
NuGet.exe push publish\X2Software.Tapeti.Annotations.$($version.NuGetVersion).nupkg -apikey $nugetkey -Source https://www.nuget.org/api/v2/package
|
2017-02-10 15:33:05 +00:00
|
|
|
|
2017-02-10 15:55:16 +00:00
|
|
|
Write-Host "Pushing Tapeti.csproj" -Foreground Blue
|
|
|
|
NuGet.exe push publish\X2Software.Tapeti.$($version.NuGetVersion).nupkg -apikey $nugetkey -Source https://www.nuget.org/api/v2/package
|
2017-02-08 21:09:06 +00:00
|
|
|
|
2017-02-10 15:55:16 +00:00
|
|
|
Write-Host "Pushing Tapeti.Flow.csproj" -Foreground Blue
|
|
|
|
NuGet.exe push publish\X2Software.Tapeti.Flow.$($version.NuGetVersion).nupkg -apikey $nugetkey -Source https://www.nuget.org/api/v2/package
|
2017-02-08 21:09:06 +00:00
|
|
|
|
2017-02-10 15:55:16 +00:00
|
|
|
Write-Host "Pushing Tapeti.SimpleInjector.csproj" -Foreground Blue
|
|
|
|
NuGet.exe push publish\X2Software.Tapeti.SimpleInjector.$($version.NuGetVersion).nupkg -apikey $nugetkey -Source https://www.nuget.org/api/v2/package
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
Write-Host "Skipping push" -Foreground Blue
|
|
|
|
}
|