Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Generate Documentation in Build #28

Merged
merged 9 commits into from
Oct 23, 2018
Next Next commit
need to build the docs from the build
  • Loading branch information
thefringeninja committed Oct 21, 2018
commit 94f159e3ace413ec1b693c1eba153c9a225b5539
6 changes: 6 additions & 0 deletions build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ static class Program
private const string ArtifactsDir = "artifacts";

private const string Clean = nameof(Clean);
private const string GenerateDocumentation = nameof(GenerateDocumentation);
private const string Build = nameof(Build);
private const string RunTests = nameof(RunTests);
private const string Pack = nameof(Pack);
Expand All @@ -28,9 +29,14 @@ public static void Main(string[] args)
Directory.Delete(ArtifactsDir, true);
}
});

Target(
GenerateDocumentation,
() => Run("dotnet", "build docs/docs.csproj"));

Target(
Build,
DependsOn(GenerateDocumentation),
() => Run(
"dotnet",
$"build src/SqlStreamStore.HAL.sln -c Release /p:BuildMetadata={buildMetadata}"));
Expand Down