Skip to content

Commit b4f848d

Browse files
CopilotJusterZhu
andauthored
Update NuGet publish workflow for current component set and .NET 10 support (#151)
* Initial plan * Update workflow to include correct NuGet components Co-authored-by: JusterZhu <11714536+JusterZhu@users.noreply.github.com> * Fix YAML formatting issues Co-authored-by: JusterZhu <11714536+JusterZhu@users.noreply.github.com> * Add GeneralUpdate.Common back to the component list Co-authored-by: JusterZhu <11714536+JusterZhu@users.noreply.github.com> * Update workflow to use .NET 10 for Drivelution support Co-authored-by: JusterZhu <11714536+JusterZhu@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: JusterZhu <11714536+JusterZhu@users.noreply.github.com>
1 parent 608d576 commit b4f848d

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/dotnet-ci.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: 安装.NET SDK
1919
uses: actions/setup-dotnet@v4
2020
with:
21-
dotnet-version: '9.0.x' # 与现有CI配置保持一致
21+
dotnet-version: '10.0.x' # 支持GeneralUpdate.Drivelution的.NET 10目标框架
2222

2323
- name: 恢复依赖
2424
run: dotnet restore ./src/c#/GeneralUpdate.sln # 使用解决方案统一恢复
@@ -33,9 +33,11 @@ jobs:
3333
"GeneralUpdate.ClientCore",
3434
"GeneralUpdate.Common",
3535
"GeneralUpdate.Core",
36-
"GeneralUpdate.Differential"
36+
"GeneralUpdate.Differential",
37+
"GeneralUpdate.Drivelution",
38+
"GeneralUpdate.Extension"
3739
)
38-
40+
3941
foreach ($project in $projects) {
4042
dotnet pack ./src/c#/$project/$project.csproj `
4143
-c Release `
@@ -53,4 +55,4 @@ jobs:
5355
name: Release v${{ github.event.inputs.version }}
5456
files: ./nupkgs/*.nupkg
5557
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)