1 Star 0 Fork 0

Darcy Zhang/docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
buildData.cake 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
Gary Ewan Park 提交于 2020-11-18 11:02 . (build) Refactoring build script
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");
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/darcy-zhang/docs.git
git@gitee.com:darcy-zhang/docs.git
darcy-zhang
docs
docs
master

搜索帮助