Skip to content

Commit

Permalink
brew release commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kattouf committed Nov 17, 2024
1 parent f7ee4bb commit db4c632
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions SakeApp/ReleaseCommands.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,22 @@ struct ReleaseCommands {
}
}

public static var release: Command {
public static var brewRelease: Command {
Command(
description: "Release",
description: "Brew to Homebrew",
run: { context in
let arguments = try ReleaseArguments.parse(context.arguments)
try arguments.validate()

let version = arguments.version
try runAndPrint("brew", "bump-formula-pr", "--version=\(version)", "progressline")
}
)
}

public static var githubRelease: Command {
Command(
description: "Release to GitHub",
dependencies: [
bumpVersion,
cleanReleaseArtifacts,
Expand All @@ -67,7 +80,6 @@ struct ReleaseCommands {
)
}


static var bumpVersion: Command {
Command(
description: "Bump version",
Expand Down

0 comments on commit db4c632

Please sign in to comment.