diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 22fd2f4..6b9265a 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -43,9 +43,12 @@ jobs: run: msbuild lib\mcs-unity\mcs\mcs.csproj -t:Restore -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release # Restore NuGet packages - - name: Restore NuGet - shell: cmd - run: msbuild src\UnityExplorer.csproj -t:Restore + - name: Restore UnityExplorer NuGet + uses: nuget/setup-nuget@v1 + with: + nuget-api-key: ${{ secrets.NuGetAPIKey }} + nuget-version: '5.x' + - run: nuget restore src\UnityExplorer.sln # Build UnityExplorer Releases