From ab7f12058f5a2fe362933e7cf87ce9c4a0a023b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Domeradzki?= Date: Tue, 26 Mar 2024 16:50:12 +0100 Subject: [PATCH] Skip restore if possible --- .github/workflows/publish.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2f519ce19..5ea5443b7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -141,7 +141,6 @@ jobs: variantArgs="-r $VARIANT" fi - dotnet restore $variantArgs dotnet build ArchiSteamFarm -c "$CONFIGURATION" "-p:ASFVariant=${VARIANT}" -p:ContinuousIntegrationBuild=true --nologo $variantArgs - name: Prepare for publishing on Windows @@ -160,12 +159,6 @@ jobs: $variantArgs = '-r', "$env:VARIANT" } - dotnet restore $variantArgs - - if ($LastExitCode -ne 0) { - throw "Last command failed." - } - dotnet build ArchiSteamFarm -c "$env:CONFIGURATION" "-p:ASFVariant=$env:VARIANT" -p:ContinuousIntegrationBuild=true --nologo $variantArgs if ($LastExitCode -ne 0) {