Skip to content

chore: add nuget pack #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jan 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
language: csharp
solution: CSharpHTTPClient/CSharpHTTPClient.sln
env:
matrix:
secure: KJrQ+NfmzlgCSXRyqeAMDGZUG6GO4/+xk1T0wGy1BgVz8seo/fDWL8osWEljB4Sj05sfFj7CM+rociwL6sdVyqCiHbCAM7XuHs58D+4Tlh5pGHL+G1qOl65/pDl0ulq+M7PwDxHPZ60/oyH2a16t5jtD9e4W31y2fXzEbHGLHXg=

script:
- make test

after_success:
- bash <(curl -s https://codecov.io/bash)

deploy:
skip_cleanup: true
provider: script
script: nuget push ./CSharpHTTPClient/bin/Release/*.nupkg -ApiKey $NUGET_API_KEY -Source https://api.nuget.org/v3/index.json
on:
branch: master
tags: true
after_success:
- bash <(curl -s https://codecov.io/bash)
19 changes: 4 additions & 15 deletions CSharpHTTPClient/CSharpHTTPClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,8 @@
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<VersionPrefix>3.4.2</VersionPrefix>
<AssemblyName>SendGrid.CSharp.HTTP.Client</AssemblyName>
<Authors>Elmer Thomas;Twilio DX Team</Authors>
<Company>Twilio SendGrid</Company>
<Product>Twilio SendGrid</Product>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://sendgrid.com/</PackageProjectUrl>
<RepositoryUrl>https://github.com/sendgrid/csharp-http-client.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageIconUrl>https://sendgrid.com/wp-content/themes/sgdotcom/pages/resource/brand//2016/SendGrid-Logomark.png</PackageIconUrl>
<PackageDescription>Quickly and easily access any REST or REST-like API using a fluent interface via method chaining and reflection.</PackageDescription>
<PackageReleaseNotes>Please see: https://github.com/sendgrid/csharp-http-client/releases</PackageReleaseNotes>
<PackageTags>Twilio;SendGrid;Email;Mail;Microsoft;Azure;Transactional;.NET Core</PackageTags>
<Copyright>Twilio SendGrid, Inc. 2020</Copyright>
<Authors>Twilio</Authors>
<Description>A Simple Fluent REST API Client.</Description>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand Down Expand Up @@ -76,7 +64,8 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="csharphttpclient.snk" />
<None Include="../csharphttpclient.snk" />
<None Include="SendGridCSharpHTTPClient.nuspec" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
17 changes: 1 addition & 16 deletions CSharpHTTPClient/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Twilio SendGrid")]
[assembly: AssemblyProduct("SendGrid.CSharp.HTTP.Client")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyTrademark("Twilio SendGrid")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyCopyright("Copyright Twilio SendGrid 2020")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
Expand All @@ -20,16 +18,3 @@

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("26c4841f-ec62-4ec7-b16e-3a7386ea36dc")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.4.1")]
[assembly: AssemblyFileVersion("3.4.1")]
16 changes: 16 additions & 0 deletions CSharpHTTPClient/SendGridCSharpHTTPClient.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>SendGrid.CSharp.HTTP.Client</id>
<authors>$authors$</authors>
<title>$title$</title>
<owners>$authors$</owners>
<version>3.4.2</version>
<projectUrl>https://sendgrid.com/</projectUrl>
<iconUrl>https://sendgrid.com/wp-content/themes/sgdotcom/pages/resource/brand//2016/SendGrid-Logomark.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<copyright>Copyright Twilio SendGrid 2020</copyright>
<description>$description$</description>
<tags>Twilio SendGrid Email Mail Microsoft Azure Transactional .NET Core</tags>
</metadata>
</package>
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ install:
test: install
xbuild /p:Configuration=Release CSharpHTTPClient/CSharpHTTPClient.sln
mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe UnitTest/bin/Release/UnitTest.dll -domain:None
nuget pack ./CSharpHTTPClient/CSharpHTTPClient.csproj -Properties Configuration=Release
curl -s https://codecov.io/bash > .codecov
chmod +x .codecov
./.codecov

14 changes: 1 addition & 13 deletions UnitTest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("UnitTest")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyCopyright("Copyright Twilio SendGrid © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -22,15 +22,3 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("df845c59-4b39-4a8a-ac89-e5336b57076b")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.4.1")]
[assembly: AssemblyFileVersion("3.4.1")]