mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
build: rename workflows
This commit is contained in:
4
.github/workflows/dev-build-win.yml
vendored
4
.github/workflows/dev-build-win.yml
vendored
@@ -9,12 +9,12 @@
|
||||
#
|
||||
# - To trigger manual generation invoke:
|
||||
#
|
||||
# nuke --generate-configuration GitHubActions_dev-build --host GitHubActions
|
||||
# nuke --generate-configuration GitHubActions_dev-build-win --host GitHubActions
|
||||
#
|
||||
# </auto-generated>
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
name: dev-build
|
||||
name: dev-build-win
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
4
.github/workflows/release-maa-win.yml
vendored
4
.github/workflows/release-maa-win.yml
vendored
@@ -9,12 +9,12 @@
|
||||
#
|
||||
# - To trigger manual generation invoke:
|
||||
#
|
||||
# nuke --generate-configuration GitHubActions_release-maa --host GitHubActions
|
||||
# nuke --generate-configuration GitHubActions_release-maa-win --host GitHubActions
|
||||
#
|
||||
# </auto-generated>
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
name: release-maa
|
||||
name: release-maa-win
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
@@ -6,8 +6,8 @@ namespace MaaBuilder;
|
||||
[TypeConverter(typeof(TypeConverter<ActionConfiguration>))]
|
||||
public class ActionConfiguration : Enumeration
|
||||
{
|
||||
public static readonly ActionConfiguration DevBuild = new() { Value = "dev-build" };
|
||||
public static readonly ActionConfiguration ReleaseMaa = new() { Value = "release-maa" };
|
||||
public static readonly ActionConfiguration DevBuild = new() { Value = "dev-build-win" };
|
||||
public static readonly ActionConfiguration ReleaseMaa = new() { Value = "release-maa-win" };
|
||||
|
||||
public static implicit operator string(ActionConfiguration configuration)
|
||||
{
|
||||
@@ -16,8 +16,8 @@ public class ActionConfiguration : Enumeration
|
||||
|
||||
public static explicit operator ActionConfiguration(string value) => value switch
|
||||
{
|
||||
"dev-build" => DevBuild,
|
||||
"release-maa" => ReleaseMaa,
|
||||
"dev-build-win" => DevBuild,
|
||||
"release-maa-win" => ReleaseMaa,
|
||||
_ => null
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ using Nuke.Common.CI.GitHubActions;
|
||||
namespace MaaBuilder;
|
||||
|
||||
[GitHubActions(
|
||||
name: "dev-build",
|
||||
name: "dev-build-win",
|
||||
image: GitHubActionsImage.WindowsLatest,
|
||||
OnPushBranchesIgnore = new[] { MasterBranch },
|
||||
OnPullRequestBranches = new[] { DevBranch },
|
||||
|
||||
@@ -3,7 +3,7 @@ using Nuke.Common.CI.GitHubActions;
|
||||
namespace MaaBuilder;
|
||||
|
||||
[GitHubActions(
|
||||
name: "release-maa",
|
||||
name: "release-maa-win",
|
||||
image: GitHubActionsImage.WindowsLatest,
|
||||
OnPushTags = new[] { "v*" },
|
||||
InvokedTargets = new[] { nameof(ReleaseMaa) },
|
||||
|
||||
Reference in New Issue
Block a user