File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -8,17 +8,15 @@ public class Paths
8
8
public static readonly DirectoryPath Src = Root . Combine ( "src" ) ;
9
9
public static readonly DirectoryPath Docs = Root . Combine ( "docs" ) ;
10
10
public static readonly DirectoryPath Build = Root . Combine ( "build" ) ;
11
+ public static readonly DirectoryPath Schemas = Root . Combine ( "schemas" ) ;
11
12
public static readonly DirectoryPath Dogfood = Root . Combine ( "dogfood" ) ;
12
13
public static readonly DirectoryPath Integration = Root . Combine ( "tests" ) . Combine ( "integration" ) ;
13
14
14
- public static readonly DirectoryPath Nuspec = Build . Combine ( "nuspec" ) ;
15
-
16
15
public static readonly DirectoryPath TestOutput = Artifacts . Combine ( "test-results" ) ;
17
16
public static readonly DirectoryPath Packages = Artifacts . Combine ( "packages" ) ;
18
17
public static readonly DirectoryPath ArtifactsDocs = Artifacts . Combine ( "docs" ) ;
19
18
20
19
public static readonly DirectoryPath Native = Packages . Combine ( "native" ) ;
21
20
public static readonly DirectoryPath Nuget = Packages . Combine ( "nuget" ) ;
22
- public static readonly DirectoryPath ArtifactsBinCmdline = Packages . Combine ( "prepare" ) . Combine ( "cmdline" ) ;
23
21
public static readonly DirectoryPath ArtifactsBinPortable = Packages . Combine ( "prepare" ) . Combine ( "portable" ) ;
24
22
}
Original file line number Diff line number Diff line change @@ -20,8 +20,13 @@ public override void Run(BuildContext context)
20
20
{
21
21
if ( context . WyamSettings is not null )
22
22
{
23
+ var schemaTargetDir = Paths . ArtifactsDocs . Combine ( "preview" ) . Combine ( "schemas" ) ;
24
+ context . EnsureDirectoryExists ( schemaTargetDir ) ;
25
+ context . CopyDirectory ( Paths . Schemas , schemaTargetDir ) ;
26
+
23
27
context . WyamSettings . Preview = true ;
24
28
context . WyamSettings . Watch = true ;
29
+ context . WyamSettings . NoClean = true ;
25
30
context . WyamSettings . Settings . Add ( "Host" , "gittools.github.io" ) ;
26
31
context . Wyam ( context . WyamSettings ) ;
27
32
}
Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ private static void PublishDocumentation(BuildContext context)
82
82
context . Wyam ( context . WyamSettings ) ;
83
83
}
84
84
85
+ var schemaTargetDir = publishFolder . Combine ( "schemas" ) ;
86
+ context . EnsureDirectoryExists ( schemaTargetDir ) ;
87
+ context . CopyDirectory ( Paths . Schemas , schemaTargetDir ) ;
88
+
85
89
if ( ! context . GitHasUncommitedChanges ( publishFolder ) ) return ;
86
90
87
91
context . Information ( "Stage all changes..." ) ;
You can’t perform that action at this time.
0 commit comments