Skip to content

Commit

Permalink
feat(go-semantic-release): remove Cloud Build helper
Browse files Browse the repository at this point in the history
Deprecated and now removed.
  • Loading branch information
odsod committed Sep 17, 2024
1 parent fcfcdb9 commit c409b7e
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tools/sggosemanticrelease/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,6 @@ func Command(ctx context.Context, args ...string) *exec.Cmd {
return sg.Command(ctx, sg.FromBinDir(name), args...)
}

// ReleaseFromCloudBuildCommand creates a semantic release with optional extra arguments to semantic-release.
// Deprecated: This helper will be removed in a coming release. Copy it if you still need it.
func ReleaseFromCloudBuildCommand(ctx context.Context, ci bool, repo string, extraArgs ...string) *exec.Cmd {
args := []string{
"--allow-initial-development-versions",
"--allow-no-changes",
"--ci-condition",
"default",
"--provider-opt",
}
args = append(args, "slug="+repo)
args = append(args, extraArgs...)
if !ci {
args = append(args, "--dry")
}
return Command(ctx, args...)
}

func PrepareCommand(ctx context.Context) error {
binDir := sg.FromToolsDir(name, version)
binary := filepath.Join(binDir, name)
Expand Down

0 comments on commit c409b7e

Please sign in to comment.