diff --git a/Build.ps1 b/Build.ps1 index f0f4d22f44..f3c142e64f 100644 --- a/Build.ps1 +++ b/Build.ps1 @@ -22,15 +22,10 @@ function Exec } } -$artifacts = "..\artifacts" +$artifacts = ".\artifacts" if(Test-Path $artifacts) { Remove-Item $artifacts -Force -Recurse } -exec { & dotnet clean -c Release } - -exec { & dotnet build -c Release } - -exec { & dotnet test -c Release --results-directory $artifacts --no-build -l trx --verbosity=normal } +exec { & dotnet test -c Release --results-directory $artifacts -l trx --verbosity=normal } exec { & dotnet pack .\src\AutoMapper\AutoMapper.csproj -c Release -o $artifacts --no-build } - diff --git a/Push.ps1 b/Push.ps1 index 64e0459493..9663563b23 100644 --- a/Push.ps1 +++ b/Push.ps1 @@ -1,5 +1,5 @@ $scriptName = $MyInvocation.MyCommand.Name -$artifacts = "../artifacts" +$artifacts = "./artifacts" if ([string]::IsNullOrEmpty($Env:NUGET_API_KEY)) { Write-Host "${scriptName}: NUGET_API_KEY is empty or not set. Skipped pushing package(s)."