Use IsTeamCity to determine if we're running on the CI

This commit is contained in:
Pranav K 2016-10-20 14:36:51 -07:00 committed by N. Taylor Mullen
parent 3b5a0db512
commit 43caef488c
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ k-standard-goals
#push-packages target="verify"
@{
if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("NUGET_PUBLISH_FEED")))
if (IsTeamCity)
{
Environment.SetEnvironmentVariable("NUGET_PUBLISH_FEED", "https://dotnet.myget.org/F/aspnetcore-feature-work/api/v2/package");
CallTarget("nuget-install");