Skip to content

Commit db4c632

Browse files
committed
brew release commands
1 parent f7ee4bb commit db4c632

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

SakeApp/ReleaseCommands.swift

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,22 @@ struct ReleaseCommands {
5252
}
5353
}
5454

55-
public static var release: Command {
55+
public static var brewRelease: Command {
5656
Command(
57-
description: "Release",
57+
description: "Brew to Homebrew",
58+
run: { context in
59+
let arguments = try ReleaseArguments.parse(context.arguments)
60+
try arguments.validate()
61+
62+
let version = arguments.version
63+
try runAndPrint("brew", "bump-formula-pr", "--version=\(version)", "progressline")
64+
}
65+
)
66+
}
67+
68+
public static var githubRelease: Command {
69+
Command(
70+
description: "Release to GitHub",
5871
dependencies: [
5972
bumpVersion,
6073
cleanReleaseArtifacts,
@@ -67,7 +80,6 @@ struct ReleaseCommands {
6780
)
6881
}
6982

70-
7183
static var bumpVersion: Command {
7284
Command(
7385
description: "Bump version",

0 commit comments

Comments
 (0)