File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ Task("Preview-Documentation")
3333Task ( "Force-Publish-Documentation" )
3434 . IsDependentOn ( "Clean-Documentation" )
3535 . WithCriteria ( ( ) => DirectoryExists ( MakeAbsolute ( Directory ( "docs" ) ) ) , "Wyam documentation directory is missing" )
36- . WithCriteria < BuildParameters > ( ( context , parameters ) => ! parameters . IsPullRequest , "Publish-Documentation works only for non-PR commits." )
3736 . Does < BuildParameters > ( ( parameters ) =>
3837{
3938 Wyam ( new WyamSettings
@@ -61,6 +60,9 @@ Task("Force-Publish-Documentation")
6160Task ( "Publish-Documentation" )
6261 . IsDependentOn ( "Clean-Documentation" )
6362 . WithCriteria ( ( ) => DirectoryExists ( MakeAbsolute ( Directory ( "docs" ) ) ) , "Wyam documentation directory is missing" )
63+ . WithCriteria < BuildParameters > ( ( context , parameters ) => parameters . IsRunningOnWindows , "Publish-Documentation is ran only on Windows agents." )
64+ . WithCriteria < BuildParameters > ( ( context , parameters ) => parameters . IsRunningOnAzurePipeline , "Publish-Documentation is ran only on AzurePipeline." )
65+ . WithCriteria < BuildParameters > ( ( context , parameters ) => ! parameters . IsPullRequest , "Publish-Documentation works only for non-PR commits." )
6466 . Does < BuildParameters > ( ( parameters ) =>
6567{
6668 // Check to see if any documentation has changed
You can’t perform that action at this time.
0 commit comments