Skip to content

Commit b8777f9

Browse files
author
Kirill Vainer
authored
Merge pull request #40 from sailthru/DEVOPS-256-publish-to-nuget-on-build
[DEVOPS-256] Publish to Nuget on build
2 parents 4fe4103 + 7389f7f commit b8777f9

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,20 @@ install:
1818
- nuget restore Sailthru/Sailthru.sln
1919
- if [ "$DOTNET" = "mono" ]; then nuget install NUnit.Console -Version 3.12.0-beta1 -OutputDirectory testrunner; fi
2020

21+
2122
script:
2223
- msbuild /noLogo /p:Configuration=Release Sailthru/Sailthru.sln
2324
- if [ "$DOTNET" = "mono" ]; then mono ./testrunner/NUnit.ConsoleRunner.3.12.0-beta1/tools/nunit3-console.exe ./Sailthru/Sailthru.Tests/bin/Release/net452/Sailthru.Tests.dll; fi
2425
- if [ "$DOTNET" != "mono" ]; then dotnet test --no-build -f "netcoreapp${DOTNET}" -c Release Sailthru/Sailthru.sln; fi
26+
27+
before_deploy:
28+
- msbuild /t:Pack /p:Configuration=Release Sailthru/Sailthru/Sailthru.csproj
29+
- nuget setApiKey $NUGET_API_KEY -Verbosity quiet >/dev/null 2>&1
30+
31+
deploy:
32+
skip_cleanup: true
33+
provider: script
34+
on:
35+
tags: true
36+
condition: $DOTNET = mono
37+
script: nuget push Sailthru/Sailthru/bin/Release/Sailthru.Client.*.nupkg -Source nuget.org

Sailthru/Sailthru/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.1.5.0")]
36-
[assembly: AssemblyFileVersion("1.1.5.0")]
35+
[assembly: AssemblyVersion("1.1.6.0")]
36+
[assembly: AssemblyFileVersion("1.1.6.0")]

Sailthru/Sailthru/Sailthru.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<FileAlignment>512</FileAlignment>
1515
<PackOnBuild>true</PackOnBuild>
1616
<PackageId>Sailthru.Client</PackageId>
17-
<PackageVersion>1.1.5</PackageVersion>
17+
<PackageVersion>1.1.6-alpha.2</PackageVersion>
1818
<Authors>Sailthru</Authors>
1919
<PackageLicenseUrl>https://opensource.org/licenses/MIT</PackageLicenseUrl>
2020
<PackageProjectUrl>https://github.com/sailthru/sailthru-net-client</PackageProjectUrl>

0 commit comments

Comments
 (0)