mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-26 05:02:50 +08:00
23 lines
679 B
C#
23 lines
679 B
C#
using Statiq.Common;
|
|
using Statiq.Core;
|
|
using Statiq.Web.GitHub;
|
|
|
|
namespace Docs.Pipelines
|
|
{
|
|
public class DeploymentPipeline : Pipeline
|
|
{
|
|
public DeploymentPipeline()
|
|
{
|
|
Deployment = true;
|
|
OutputModules = new ModuleList
|
|
{
|
|
new DeployGitHubPages(
|
|
Config.FromSetting<string>(Constants.Site.Owner),
|
|
Config.FromSetting<string>(Constants.Site.Repository),
|
|
Config.FromSetting<string>(Constants.Deployment.GitHubToken))
|
|
.ToBranch(Config.FromSetting<string>(Constants.Deployment.TargetBranch))
|
|
};
|
|
}
|
|
}
|
|
}
|