File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ using Octokit;
1616
1717var target = Argument ( "target" , "Default" ) ;
1818var configuration = Argument ( "configuration" , "Release" ) ;
19- var isLocal = BuildSystem . IsLocalBuild ;
2019var isRunningOnUnix = IsRunningOnUnix ( ) ;
2120var isRunningOnWindows = IsRunningOnWindows ( ) ;
2221var isRunningOnAppVeyor = AppVeyor . IsRunningOnAppVeyor ;
@@ -140,7 +139,7 @@ Task("Create-Package")
140139
141140Task ( "Publish-Package" )
142141 . IsDependentOn ( "Create-Package" )
143- . WithCriteria ( ( ) => isLocal )
142+ . IsDependentOn ( "Run-Unit-Tests" )
144143 . Does ( ( ) =>
145144 {
146145 var apiKey = EnvironmentVariable ( "NUGET_API_KEY" ) ;
@@ -162,7 +161,7 @@ Task("Publish-Package")
162161
163162Task ( "Publish-Release" )
164163 . IsDependentOn ( "Publish-Package" )
165- . WithCriteria ( ( ) => isLocal )
164+ . IsDependentOn ( "Run-Unit-Tests" )
166165 . Does ( ( ) =>
167166 {
168167 var githubToken = EnvironmentVariable ( "GITHUB_API_TOKEN" ) ;
You can’t perform that action at this time.
0 commit comments