Skip to content

Commit cdca5e0

Browse files
authored
Packing (#1)
* NuGet package info * Appveyor publishes nupkg to github release on tag * Documentation * New appveyor encrypted github api key * Change version if tag exists
1 parent 96c5fd5 commit cdca5e0

File tree

19 files changed

+111
-5
lines changed

19 files changed

+111
-5
lines changed

.appveyor.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
configuration: Release
2+
version: '1.0.0-alpha-{build}'
23
init:
34
- git config --global core.autocrlf true
5+
# If there's a tag, use that as the version.
6+
- ps: >-
7+
if($env:APPVEYOR_REPO_TAG -eq "true"){Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"}
48
# Will build dependencies in release (optimize and portable pdbs) mode:
59
build_script:
610
- cmd: for /f %%a in ('dir /b test') do dotnet test -c Release test/%%a/%%a.csproj
@@ -15,7 +19,6 @@ environment:
1519
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
1620
DOTNET_CLI_TELEMETRY_OPTOUT: 1
1721
test: off
18-
deploy: off
1922
os: Visual Studio 2017
2023
dotnet_csproj:
2124
patch: true
@@ -24,4 +27,14 @@ dotnet_csproj:
2427
package_version: '{version}'
2528
artifacts:
2629
- path: '**\*.nupkg'
27-
name: serialization-nuget-packages
30+
name: serialization-nuget-packages
31+
# builds on tags will publish all nupkgs to GitHub as a Draft release
32+
deploy:
33+
release: $(appveyor_build_version)
34+
provider: GitHub
35+
auth_token:
36+
secure: DsKyNX5x7EJOCaRUpZu17qwOfpd/NWaZzmQd0aE62nBAGkqI3nASvvHfvoQTjL8y
37+
artifact: /.*\.nupkg/
38+
draft: true
39+
on:
40+
appveyor_repo_tag: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ builder.AddXml(p => p.Factory = type => new XmlSerializer(type, new XmlRootAttri
8080
#### Highlights
8181

8282
* Simple abstraction
83-
* Multiple serialization types supported
83+
* Multiple serialization formats supported
8484
* Pay for play: no unwanted dependencies
8585
* DI packages to consume with single line of code

src/Greentube.Serialization.All/Greentube.Serialization.All.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
<PropertyGroup>
33
<TargetFramework>netstandard2.0</TargetFramework>
44
<PackageVersion>0.0.0</PackageVersion>
5+
<Authors>Bruno Garcia</Authors>
6+
<Owners>Bruno Garcia; Greentube</Owners>
7+
<Description>Metapackage which includes all Greentube Serialization packages.</Description>
8+
<PackageProjectUrl>https://github.com/Greentube/serialization</PackageProjectUrl>
9+
<PackageTags>serialization;common-serialization;ISerializer</PackageTags>
10+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
511
</PropertyGroup>
612
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Coverage|AnyCPU'">
713
<DebugType>full</DebugType>

src/Greentube.Serialization.DependencyInjection.Json/Greentube.Serialization.DependencyInjection.Json.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
<PropertyGroup>
33
<TargetFramework>netstandard2.0</TargetFramework>
44
<PackageVersion>0.0.0</PackageVersion>
5+
<Authors>Bruno Garcia</Authors>
6+
<Owners>Bruno Garcia; Greentube</Owners>
7+
<Description>Integration of Greentube.Serialization.Json with Microsoft.DependencyInjection.</Description>
8+
<PackageProjectUrl>https://github.com/Greentube/serialization</PackageProjectUrl>
9+
<PackageTags>newtonsoft-json;json;aspnetcore;dependency-injection;serialization;common-serialization;ISerializer</PackageTags>
10+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
511
</PropertyGroup>
612
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Coverage|AnyCPU'">
713
<DebugType>full</DebugType>

src/Greentube.Serialization.DependencyInjection.MessagePack/Greentube.Serialization.DependencyInjection.MessagePack.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
<PropertyGroup>
33
<TargetFramework>netstandard2.0</TargetFramework>
44
<PackageVersion>0.0.0</PackageVersion>
5+
<Authors>Bruno Garcia</Authors>
6+
<Owners>Bruno Garcia; Greentube</Owners>
7+
<Description>Integration of Greentube.Serialization.MessagePack with Microsoft.DependencyInjection.</Description>
8+
<PackageProjectUrl>https://github.com/Greentube/serialization</PackageProjectUrl>
9+
<PackageTags>msgpack;messagepack;aspnetcore;dependency-injection;serialization;common-serialization;ISerializer</PackageTags>
10+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
511
</PropertyGroup>
612
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Coverage|AnyCPU'">
713
<DebugType>full</DebugType>

src/Greentube.Serialization.DependencyInjection.ProtoBuf/Greentube.Serialization.DependencyInjection.ProtoBuf.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
<PropertyGroup>
33
<TargetFramework>netstandard2.0</TargetFramework>
44
<PackageVersion>0.0.0</PackageVersion>
5+
<Authors>Bruno Garcia</Authors>
6+
<Owners>Bruno Garcia; Greentube</Owners>
7+
<Description>Integration of Greentube.Serialization.ProtoBuf with Microsoft.DependencyInjection.</Description>
8+
<PackageProjectUrl>https://github.com/Greentube/serialization</PackageProjectUrl>
9+
<PackageTags>protobuf-net;protobuf;protocol-buffers;aspnetcore;dependency-injection;serialization;common-serialization;ISerializer</PackageTags>
10+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
511
</PropertyGroup>
612
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Coverage|AnyCPU'">
713
<DebugType>full</DebugType>

src/Greentube.Serialization.DependencyInjection.Xml/Greentube.Serialization.DependencyInjection.Xml.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
<PropertyGroup>
33
<TargetFramework>netstandard2.0</TargetFramework>
44
<PackageVersion>0.0.0</PackageVersion>
5+
<Authors>Bruno Garcia</Authors>
6+
<Owners>Bruno Garcia; Greentube</Owners>
7+
<Description>Integration of Greentube.Serialization.Xml with Microsoft.DependencyInjection.</Description>
8+
<PackageProjectUrl>https://github.com/Greentube/serialization</PackageProjectUrl>
9+
<PackageTags>xml;system.xml.serializer;aspnetcore;dependency-injection;serialization;common-serialization;ISerializer</PackageTags>
10+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
511
</PropertyGroup>
612
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Coverage|AnyCPU'">
713
<DebugType>full</DebugType>

src/Greentube.Serialization.DependencyInjection/Greentube.Serialization.DependencyInjection.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
<PropertyGroup>
33
<TargetFramework>netstandard2.0</TargetFramework>
44
<PackageVersion>0.0.0</PackageVersion>
5+
<Authors>Bruno Garcia</Authors>
6+
<Owners>Bruno Garcia; Greentube</Owners>
7+
<Description>Integration of Greentube.Serialization with Microsoft.DependencyInjection.</Description>
8+
<PackageProjectUrl>https://github.com/Greentube/serialization</PackageProjectUrl>
9+
<PackageTags>aspnetcore;dependency-injection;serialization;common-serialization;ISerializer</PackageTags>
10+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
511
</PropertyGroup>
612
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Coverage|AnyCPU'">
713
<DebugType>full</DebugType>

src/Greentube.Serialization.DependencyInjection/SerializationBuilder.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ namespace Greentube.Serialization.DependencyInjection
99
/// </summary>
1010
public class SerializationBuilder
1111
{
12+
/// <summary>
13+
/// ServiceCollection
14+
/// </summary>
1215
public IServiceCollection Services { get; }
1316

1417
internal SerializationBuilder(IServiceCollection services)
@@ -17,7 +20,7 @@ internal SerializationBuilder(IServiceCollection services)
1720
}
1821

1922
/// <summary>
20-
/// Adds the serializer of type <typeparam name="TSerializer"></typeparam>
23+
/// Adds the serializer of type TSerializer
2124
/// as the implemenatation of <see cref="ISerializer"/>
2225
/// </summary>
2326
/// <typeparam name="TSerializer">The implementation of <see cref="ISerializer"/></typeparam>
@@ -29,7 +32,7 @@ public void AddSerializer<TSerializer>(ServiceLifetime lifetime)
2932
}
3033

3134
/// <summary>
32-
/// Adds the serializer of type <typeparam name="TSerializer"></typeparam>
35+
/// Adds the serializer of type TSerializer
3336
/// as the implemenatation of <see cref="ISerializer"/>
3437
/// </summary>
3538
/// <typeparam name="TSerializer">The implementation of <see cref="ISerializer"/></typeparam>

src/Greentube.Serialization.Json/Greentube.Serialization.Json.csproj

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
<PropertyGroup>
33
<TargetFramework>netstandard1.3</TargetFramework>
44
<PackageVersion>0.0.0</PackageVersion>
5+
<Authors>Bruno Garcia</Authors>
6+
<Owners>Bruno Garcia; Greentube</Owners>
7+
<Description>A JSON implementation of ISerializer provided by Greentube.Serialization</Description>
8+
<PackageProjectUrl>https://github.com/Greentube/serialization</PackageProjectUrl>
9+
<PackageTags>newtonsoft-json;json;serialization;common-serialization;ISerializer</PackageTags>
10+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
511
</PropertyGroup>
612
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Coverage|AnyCPU'">
713
<DebugType>full</DebugType>

0 commit comments

Comments
 (0)