Skip to content

Commit 6d9033f

Browse files
authored
Merge pull request #8559 from Meloong-Git/copilot/investigate-workflow-failure
Fix build failure: add NuGet restore for PCLCS before MSBuild
2 parents 08c81b6 + 0030ebe commit 6d9033f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
(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"
5656
(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"
5757
58+
- name: Restore NuGet Packages
59+
run: dotnet restore PCLCS\PCLCS.csproj
60+
5861
- name: Build
5962
run: msbuild "Plain Craft Launcher 2\Plain Craft Launcher 2.vbproj" -p:Configuration=${{ matrix.configuration }}
6063

0 commit comments

Comments
 (0)