diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 71d8cc5..4e6b5ef 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -21,8 +21,14 @@ jobs: with: submodules: recursive - - name: setup-msbuild - uses: microsoft/setup-msbuild@v1 + - name: Setup msbuild + uses: microsoft/setup-msbuild@v1 + + - name: Setup nuget + uses: nuget/setup-nuget@v1 + with: + nuget-api-key: ${{ secrets.NuGetAPIKey }} + nuget-version: '5.x' # Build Il2CppAssemblyUnhollower - name: Build Il2CppAssemblyUnhollower @@ -31,11 +37,7 @@ jobs: # Restore mcs nuget - name: Restore mcs nuget - uses: nuget/setup-nuget@v1 - with: - nuget-api-key: ${{ secrets.NuGetAPIKey }} - nuget-version: '5.x' - - run: nuget restore lib\mcs-unity\mcs.sln + run: nuget restore lib\mcs-unity\mcs.sln # Build mcs - name: Build mcs @@ -43,12 +45,8 @@ jobs: run: msbuild lib\mcs-unity\mcs\mcs.csproj -t:Restore -t:Rebuild -p:Platform="AnyCPU" -p:Configuration=Release # Restore NuGet packages - - 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 + - name: Restore UnityExplorer nuget + run: nuget restore src\UnityExplorer.sln # Build UnityExplorer Releases