build(publish): 更新发布配置以包含符号和包生成

- 在构建命令中添加 --include-symbols 参数
- 启用 GeneratePackageOnBuild 属性以自动生成 NuGet 包
- 确保发布流程包含调试符号和源代码嵌入
This commit is contained in:
GwWuYou 2025-12-10 12:06:23 +08:00
parent 240f1fd899
commit 496137661d
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ jobs:
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore -p:DebugType=portable
run: dotnet build -c Release --include-symbols --no-restore -p:DebugType=portable
- name: Test
run: dotnet test --no-build -c Release --verbosity normal

View File

@ -12,7 +12,7 @@
<PackageProjectUrl>https://github.com/GeWuYou/GFramework</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>game;framework</PackageTags>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>