代码拉取完成,页面将自动刷新
public class BuildData
{
public string DeployRemote { get; set; }
public string DeployBranch { get; set; }
public DirectoryPath PublishDirectory { get; set; }
public DirectoryPath OutputDirectory { get; set; }
public string GitHubToken { get; set; }
public string GitHubUserName { get; set; }
public string GitHubPassword { get; set; }
public string ProjectPath { get; set; }
public BuildData(ICakeContext context)
{
if (context == null)
{
throw new ArgumentNullException(nameof(context));
}
DeployRemote = context.EnvironmentVariable("STATIQ_DEPLOY_REMOTE");
DeployBranch = context.EnvironmentVariable("STATIQ_DEPLOY_BRANCH");
PublishDirectory = context.MakeAbsolute(context.Directory("publish"));
OutputDirectory = context.MakeAbsolute(context.Directory("output"));
GitHubToken = context.EnvironmentVariable("STATIQ_GITHUB_TOKEN");
GitHubUserName = context.EnvironmentVariable("STATIQ_GITHUB_USER_NAME");
GitHubPassword = context.EnvironmentVariable("STATIQ_GITHUB_PASSWORD");
ProjectPath = context.EnvironmentVariable("STATIQ_PROJECT_PATH");
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。