Skip to content

Commit

Permalink
4th try
Browse files Browse the repository at this point in the history
  • Loading branch information
daveaglick committed Apr 30, 2018
1 parent 1c91a70 commit 5efcdbc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,13 @@ Task("Publish-Site")
Information("Updating search indexes");
var algoliaToken = EnvironmentVariable("DISCOVERDOTNET_ALGOLIA_TOKEN");
var algoliaClient = new AlgoliaClient("7TKEQH0O12", algoliaToken);
UpdateSearchIndex(algoliaClient, "projects", System.IO.Path.Combine(MakeAbsolute(outputDir).FullPath, "search", "projects.json"));
UpdateSearchIndex(algoliaClient, "blogs", System.IO.Path.Combine(MakeAbsolute(outputDir).FullPath, "search", "blogs.json"));
UpdateSearchIndex(algoliaClient, "posts", System.IO.Path.Combine(MakeAbsolute(outputDir).FullPath, "search", "posts.json"));
UpdateSearchIndex(algoliaClient, "broadcasts", System.IO.Path.Combine(MakeAbsolute(outputDir).FullPath, "search", "broadcasts.json"));
UpdateSearchIndex(algoliaClient, "episodes", System.IO.Path.Combine(MakeAbsolute(outputDir).FullPath, "search", "episodes.json"));
UpdateSearchIndex(algoliaClient, "resources", System.IO.Path.Combine(MakeAbsolute(outputDir).FullPath, "search", "resources.json"));
string indexPath = System.IO.Path.Combine(MakeAbsolute(outputDir).FullPath, "data", "search");
UpdateSearchIndex(algoliaClient, "projects", System.IO.Path.Combine(indexPath, "projects.json"));
UpdateSearchIndex(algoliaClient, "blogs", System.IO.Path.Combine(indexPath, "blogs.json"));
UpdateSearchIndex(algoliaClient, "posts", System.IO.Path.Combine(indexPath, "posts.json"));
UpdateSearchIndex(algoliaClient, "broadcasts", System.IO.Path.Combine(indexPath, "broadcasts.json"));
UpdateSearchIndex(algoliaClient, "episodes", System.IO.Path.Combine(indexPath, "episodes.json"));
UpdateSearchIndex(algoliaClient, "resources", System.IO.Path.Combine(indexPath, "resources.json"));
});

//////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 5efcdbc

Please sign in to comment.