Files
MaaAssistantArknights/tools/MaaBuilder/Build.CI.GitHubActions.DevBuild.cs
2022-05-23 23:17:28 +08:00

36 lines
1.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using Nuke.Common.CI.GitHubActions;
namespace MaaBuilder;
[GitHubActions(
name: "dev-build",
image: GitHubActionsImage.WindowsLatest,
OnPushBranchesIgnore = new[] { MasterBranch },
OnPullRequestBranches = new[] { DevBranch },
OnPushIncludePaths = new[]
{
"src/MeoAssistant/**",
"src/MeoAssistantBuilder/**",
"src/MeoAsstGui/**", // 新 UI 发布后,移除 MeoAsstGui
"3rdparty/**", // 新 UI 发布后,移除 3rdparty/resource/**
"include/**",
"resource/**", // 新 UI 发布后DevBuild 不再包含 WPF Gui 内容,不再打包 MaaBundle因此移除资源文件夹的监控
"MeoAssistantArknights.sln"
},
OnPullRequestIncludePaths = new[]
{
"src/MeoAssistant/**",
"src/MeoAssistantBuilder/**",
"src/MeoAsstGui/**", // 新 UI 发布后,移除 MeoAsstGui
"3rdparty/**", // 新 UI 发布后,移除 3rdparty/resource/**
"include/**",
"resource/**", // 新 UI 发布后DevBuild 不再包含 WPF Gui 内容,不再打包 MaaBundle因此移除资源文件夹的监控
"MeoAssistantArknights.sln"
},
OnWorkflowDispatchRequiredInputs = new string[] { "Reason" },
InvokedTargets = new[] { nameof(DevBuild) },
EnableGitHubToken = true,
PublishArtifacts = true
)]
public partial class Build { }