Merge pull request #8559 from Meloong-Git/copilot/investigate-workflow-failure

Fix build failure: add NuGet restore for PCLCS before MSBuild
This commit is contained in:
龙腾猫跃 authored and GitHub committed 2026-04-29 06:09:27 +08:00
commit 6d9033f099
1 file changed
+3
+3
View File
@@ -55,6 +55,9 @@ jobs:
(gc "Plain Craft Launcher 2\Modules\ModSecret.vb") -replace 'Public CurseForgeAPIKey As String = If(Environment.GetEnvironmentVariable("PCL_CURSEFORGE_API_KEY"), "")', 'Public CurseForgeAPIKey As String = If(Environment.GetEnvironmentVariable("PCL_CURSEFORGE_API_KEY"), "${{ secrets.CURSEFORGE_API_KEY }}")' | Out-File "Plain Craft Launcher 2\Modules\ModSecret.vb"
(gc "Plain Craft Launcher 2\Modules\Base\ModBase.vb") -replace 'Public Const CommitHash As String = ""', 'Public Const CommitHash As String = "${{ github.sha }}"' | Out-File "Plain Craft Launcher 2\Modules\Base\ModBase.vb"
- name: Restore NuGet Packages
run: dotnet restore PCLCS\PCLCS.csproj
- name: Build
run: msbuild "Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj" -p:Configuration=${{ matrix.configuration }}