Skip to content

Commit 828a051

Browse files
authored
Merge pull request #213 from Cysharp/ci/nuget_readme
chore: add README.md to nuget package
2 parents d449524 + 0601b25 commit 828a051

File tree

2 files changed

+24
-18
lines changed

2 files changed

+24
-18
lines changed

.github/workflows/build-debug.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ jobs:
1919
steps:
2020
- uses: Cysharp/Actions/.github/actions/checkout@main
2121
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main
22-
- run: dotnet build -c Debug
23-
- run: dotnet test -c Debug --no-build
22+
- run: dotnet build -c Release
23+
- run: dotnet test -c Release --no-build
24+
- run: dotnet pack -c Release --no-build -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -o $GITHUB_WORKSPACE/artifacts

Directory.Build.props

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
<Project>
22

3-
<PropertyGroup>
4-
<!-- NuGet Packaging -->
5-
<PackageVersion>$(Version)</PackageVersion>
6-
<Company>Cysharp</Company>
7-
<Authors>Cysharp</Authors>
8-
<Copyright>© Cysharp, Inc.</Copyright>
9-
<PackageProjectUrl>https://github.com/Cysharp/ZLogger</PackageProjectUrl>
10-
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
11-
<RepositoryType>git</RepositoryType>
12-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
13-
<PackageIcon>Icon.png</PackageIcon>
14-
<SignAssembly>true</SignAssembly>
15-
<AssemblyOriginatorKeyFile>../../opensource.snk</AssemblyOriginatorKeyFile>
16-
<!-- For BenchmarkDotNet generated project-->
17-
<AssemblyOriginatorKeyFile Condition="EXISTS('./../../../../../../opensource.snk')">../../../../../../opensource.snk</AssemblyOriginatorKeyFile>
18-
</PropertyGroup>
3+
<PropertyGroup>
4+
<!-- NuGet Packaging -->
5+
<PackageVersion>$(Version)</PackageVersion>
6+
<Company>Cysharp</Company>
7+
<Authors>Cysharp</Authors>
8+
<Copyright>© Cysharp, Inc.</Copyright>
9+
<PackageProjectUrl>https://github.com/Cysharp/ZLogger</PackageProjectUrl>
10+
<PackageReadmeFile>README.md</PackageReadmeFile>
11+
<RepositoryUrl>$(PackageProjectUrl)</RepositoryUrl>
12+
<RepositoryType>git</RepositoryType>
13+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
14+
<PackageIcon>Icon.png</PackageIcon>
15+
<SignAssembly>true</SignAssembly>
16+
<AssemblyOriginatorKeyFile>../../opensource.snk</AssemblyOriginatorKeyFile>
17+
<!-- For BenchmarkDotNet generated project-->
18+
<AssemblyOriginatorKeyFile Condition="EXISTS('./../../../../../../opensource.snk')">../../../../../../opensource.snk</AssemblyOriginatorKeyFile>
19+
</PropertyGroup>
20+
21+
<ItemGroup>
22+
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="\" />
23+
</ItemGroup>
1924

2025
</Project>

0 commit comments

Comments
 (0)