diff --git a/build/prep_deployment.ps1 b/build/prep_deployment.ps1 index cb9e5b2cf7..aa403fa79d 100644 --- a/build/prep_deployment.ps1 +++ b/build/prep_deployment.ps1 @@ -21,7 +21,7 @@ if (($env:CONFIGURATION -match "Release") -And ($env:APPVEYOR_REPO_BRANCH -match } } -if ($env:APPVEYOR_REPO_COMMIT_MESSAGE -match "\[NugetDeploy\]") { +if (($env:APPVEYOR_REPO_BRANCH -match "master") -And ($env:APPVEYOR_REPO_COMMIT_MESSAGE -match "\[NugetDeploy\]")) { $env:NugetDeploy = "Do it." Write-Host "Nuget deployment enabled" } \ No newline at end of file