diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2f519ce194a68..5ea5443b7110a 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) {