Skip to content

Commit 087b72e

Browse files
authored
Merge pull request #26 from Cysharp/ci/nuget_readme
ci: add dotnet pack and use Release
2 parents d999aa1 + ecda164 commit 087b72e

File tree

3 files changed

+32
-27
lines changed

3 files changed

+32
-27
lines changed

.github/workflows/build-debug.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ jobs:
2222
dotnet-version: |
2323
6.0.x
2424
8.0.x
25-
- run: dotnet build -c Debug
26-
- run: dotnet test -c Debug --no-build
25+
- run: dotnet build -c Release
26+
- run: dotnet test -c Release --no-build
27+
- run: dotnet pack -c Release --no-build -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -o $GITHUB_WORKSPACE/artifacts

Directory.Build.props

Lines changed: 27 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11
<Project>
2-
<PropertyGroup>
3-
<LangVersion>latest</LangVersion>
4-
<Nullable>enable</Nullable>
5-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
6-
<NoWarn>$(NoWarn);CS1591</NoWarn>
7-
<SignAssembly>true</SignAssembly>
8-
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)opensource.snk</AssemblyOriginatorKeyFile>
2+
<PropertyGroup>
3+
<LangVersion>latest</LangVersion>
4+
<Nullable>enable</Nullable>
5+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
6+
<NoWarn>$(NoWarn);CS1591</NoWarn>
7+
<SignAssembly>true</SignAssembly>
8+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)opensource.snk</AssemblyOriginatorKeyFile>
99

10-
<!-- NuGet Packaging -->
11-
<PackageVersion>$(Version)</PackageVersion>
12-
<Company>Cysharp</Company>
13-
<Authors>Cysharp</Authors>
14-
<Copyright>© Cysharp, Inc.</Copyright>
15-
<PackageProjectUrl>https://github.com/Cysharp/Utf8StringInterpolation</PackageProjectUrl>
16-
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
17-
<RepositoryType>git</RepositoryType>
18-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
19-
<PackageIcon>Icon.png</PackageIcon>
20-
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)opensource.snk</AssemblyOriginatorKeyFile>
21-
</PropertyGroup>
22-
</Project>
10+
<!-- NuGet Packaging -->
11+
<PackageVersion>$(Version)</PackageVersion>
12+
<Company>Cysharp</Company>
13+
<Authors>Cysharp</Authors>
14+
<Copyright>© Cysharp, Inc.</Copyright>
15+
<PackageTags>string</PackageTags>
16+
<PackageProjectUrl>https://github.com/Cysharp/Utf8StringInterpolation</PackageProjectUrl>
17+
<PackageReadmeFile>README.md</PackageReadmeFile>
18+
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
19+
<RepositoryType>git</RepositoryType>
20+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
21+
<PackageIcon>Icon.png</PackageIcon>
22+
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)opensource.snk</AssemblyOriginatorKeyFile>
23+
</PropertyGroup>
24+
25+
<ItemGroup>
26+
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\" />
27+
<None Include="$(MSBuildThisFileDirectory)Icon.png" Pack="true" PackagePath="\" />
28+
</ItemGroup>
29+
</Project>

src/Utf8StringInterpolation/Utf8StringInterpolation.csproj

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<Nullable>enable</Nullable>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
99
<NoWarn>$(NoWarn);CS1591;CA2255</NoWarn>
10-
<PackageTags>string</PackageTags>
10+
11+
<!-- NuGet -->
1112
<Description>Successor of ZString; UTF8 based zero allocation high-peformance String Interpolation and StringBuilder.</Description>
1213
</PropertyGroup>
1314

@@ -19,10 +20,6 @@
1920
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="6.0.0" />
2021
</ItemGroup>
2122

22-
<ItemGroup>
23-
<None Include="../../Icon.png" Pack="true" PackagePath="/" />
24-
</ItemGroup>
25-
2623
<ItemGroup>
2724
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
2825
<None Update="Utf8StringWriter.AppendFormatted.tt">

0 commit comments

Comments
 (0)