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")
33
33
Task ( "Force-Publish-Documentation" )
34
34
. IsDependentOn ( "Clean-Documentation" )
35
35
. 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." )
37
36
. Does < BuildParameters > ( ( parameters ) =>
38
37
{
39
38
Wyam ( new WyamSettings
@@ -61,6 +60,9 @@ Task("Force-Publish-Documentation")
61
60
Task ( "Publish-Documentation" )
62
61
. IsDependentOn ( "Clean-Documentation" )
63
62
. 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." )
64
66
. Does < BuildParameters > ( ( parameters ) =>
65
67
{
66
68
// Check to see if any documentation has changed
You can’t perform that action at this time.
0 commit comments