Skip to content

Commit

Permalink
Add nuget properties for publishing
Browse files Browse the repository at this point in the history
version: 0.1.1
tag: Maintenance
  • Loading branch information
Ben Zumhagen committed Nov 5, 2019
1 parent 854744b commit 7fe87fb
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
20 changes: 17 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ language: csharp
mono: none
dotnet: 2.2.402
solution: dotnet-gitchanges.sln
script:
- dotnet restore
- dotnet test
jobs:
include:
- stage: test
script:
- dotnet restore
- dotnet test
- stage: deploy
if: branch = master
script:
- set -e
- version=$(cat version.txt)
- dotnet pack -p:PackageVersion=$version
- cd dotnet-gitchanges/bin/Debug
- dotnet nuget push "dotnet_gitchanges.$version.nupkg" -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
branches:
only:
- master
3 changes: 2 additions & 1 deletion dotnet-gitchanges.Tests/dotnet-gitchanges.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>

<IsPackable>false</IsPackable>

<TargetFrameworks>netcoreapp2.1;netcoreapp2.2</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 7 additions & 2 deletions dotnet-gitchanges/dotnet-gitchanges.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
<RootNamespace>dotnet_gitchanges</RootNamespace>
<PackageId>dotnet_gitchanges</PackageId>
<Version>0.1.0</Version>
<Authors>Benjamin Zumhagen</Authors>
<PackAsTool>true</PackAsTool>
<ToolCommandName>gitchanges</ToolCommandName>
<TargetFrameworks>netcoreapp2.1;netcoreapp2.2</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="LibGit2Sharp" Version="0.27.0-preview-0029" />
<PackageReference Include="LibGit2Sharp" Version="0.26.1" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.1.1

0 comments on commit 7fe87fb

Please sign in to comment.