Skip to content

Commit

Permalink
Added nuget package details Added deploy tasks to build
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanoNET committed Jul 4, 2019
1 parent 47bc605 commit df25a2d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,17 @@ dotnet: 2.2
script:
- dotnet restore
- dotnet build -c Release
- dotnet test
- dotnet test
before_deploy:
- dotnet pack FroniusSolarClient/FroniusSolarClient.csproj --output ../package/ -c Release
- dotnet nuget push package/*.nupkg -k $NUGET_API_KEY -s $NUGET_SOURCE
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: package/*
skip_cleanup: true
draft: true
on:
tags: true
branch: master
15 changes: 14 additions & 1 deletion FroniusSolarClient/FroniusSolarClient.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Title>FroniusSolarClient</Title>
<PackageId>FroniusSolarClient.Core</PackageId>
<Description>A .NET Client wrapper for the Fronius Solar API</Description>
<Copyright>MIT</Copyright>
<RepositoryUrl>https://github.com/SeanoNET/FroniusSolarClient</RepositoryUrl>
<PackageTags>fronius-solar-api; api; fronius-inverter;</PackageTags>
<Authors>Sean O.</Authors>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>7.3</LangVersion>
<PackageProjectUrl>https://github.com/SeanoNET/FroniusSolarClient</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<AssemblyVersion>0.0.1.0</AssemblyVersion>
<FileVersion>0.0.1.0</FileVersion>
<Version>0.0.1</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit df25a2d

Please sign in to comment.