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
|
|
|
|
|
|
|
|
|
|
|
|
Write-Host "Packing Tapeti.csproj" -Foreground Blue
|
|
|
|
NuGet.exe pack Tapeti\Tapeti.csproj -OutputDir publish -Version $version.NuGetVersion
|
|
|
|
|
|
|
|
Write-Host "Packing Tapeti.Flow.csproj" -Foreground Blue
|
|
|
|
NuGet.exe pack Tapeti.Flow\Tapeti.Flow.csproj -OutputDir publish -Version $version.NuGetVersion
|
|
|
|
|
|
|
|
Write-Host "Packing Tapeti.SimpleInjector.csproj" -Foreground Blue
|
|
|
|
NuGet.exe pack Tapeti.SimpleInjector\Tapeti.SimpleInjector.csproj -OutputDir publish -Version $version.NuGetVersion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
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
|