File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 with :
1818 dotnet-version : ' 10.0.x' # 可根据你的项目适当调整
1919
20+ - name : Copy icon.png to all project directories
21+ run : |
22+ for proj in src/**/*.csproj; do
23+ cp logo.png "$(dirname "$proj")/"
24+ done
25+
2026 - name : Restore dependencies
2127 run : |
2228 for proj in src/**/*.csproj; do
3541 - name : Pack all projects in src
3642 run : |
3743 for proj in src/**/*.csproj; do
38- dotnet pack "$proj" --configuration Release --no-build --output ./nupkgs /p:Version=${VERSION}
44+ dotnet pack "$proj" --configuration Release --no-build --output ./nupkgs /p:Version=${VERSION} /p:Pack=true
3945 done
4046
4147 - name : Push all packages to NuGet
Original file line number Diff line number Diff line change 99 <File Path =" configureawait.props" />
1010 <File Path =" Directory.Build.props" />
1111 <File Path =" Directory.Packages.props" />
12+ <File Path =" logo.png" />
1213 <File Path =" README.fr-FR.md" />
1314 <File Path =" README.ja-JP.md" />
1415 <File Path =" README.md" />
Original file line number Diff line number Diff line change 66 <ImplicitUsings >enable</ImplicitUsings >
77 <Authors >sunny</Authors >
88 <RootNamespace >CommonCrawl</RootNamespace >
9+ <PackageIcon >logo.png</PackageIcon >
910 <PackageReadmeFile >README.md</PackageReadmeFile >
1011 <RepositoryUrl >https://github.com/m67186636/CommonCrawl.Net</RepositoryUrl >
1112 <GenerateAssemblyConfigurationAttribute >false</GenerateAssemblyConfigurationAttribute >
1213 <GenerateAssemblyCompanyAttribute >false</GenerateAssemblyCompanyAttribute >
1314 <GenerateAssemblyProductAttribute >false</GenerateAssemblyProductAttribute >
15+ <Pack >false</Pack >
1416 </PropertyGroup >
15- <ItemGroup >
17+ <ItemGroup Condition = " '$(Pack)' == 'true' " >
1618 <None Include =" README.md" Pack =" true" PackagePath =" " />
1719 <None Include =" README.ja-JP.md" Pack =" true" PackagePath =" " />
1820 <None Include =" README.fr-FR.md" Pack =" true" PackagePath =" " />
1921 <None Include =" README.zh-CN.md" Pack =" true" PackagePath =" " />
22+ <None Include =" logo.png" Pack =" true" PackagePath =" " />
2023 </ItemGroup >
2124</Project >
You can’t perform that action at this time.
0 commit comments