Skip to content

Commit

Permalink
goreleaser: updates release steps
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Oct 22, 2024
1 parent 3232863 commit bdc4b18
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
3 changes: 2 additions & 1 deletion completers/goreleaser_completer/cmd/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/carapace-sh/carapace-bin/pkg/actions/tools/goreleaser"
"github.com/spf13/cobra"
)

Expand Down Expand Up @@ -60,6 +61,6 @@ func init() {
"release-header-tmpl": carapace.ActionFiles(),
"release-notes": carapace.ActionFiles(),
"release-notes-tmpl": carapace.ActionFiles(),
"skip": carapace.ActionValues("announce", "aur", "before", "docker", "homebrew", "ko", "nix", "publish", "sbom", "scoop", "sign", "snapcraft", "validate", "winget").UniqueList(","),
"skip": goreleaser.ActionReleaseSteps().UniqueList(","),
})
}
30 changes: 30 additions & 0 deletions pkg/actions/tools/goreleaser/release.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package goreleaser

import "github.com/carapace-sh/carapace"

// ActionReleaseSteps completes release steps.
//
// announce
// archive
func ActionReleaseSteps() carapace.Action {
return carapace.ActionValues(
"announce",
"archive",
"aur",
"before",
"chocolatey",
"docker",
"homebrew",
"ko",
"nfpm",
"nix",
"notarize",
"publish",
"sbom",
"scoop",
"sign",
"snapcraft",
"validate",
"winget",
).Tag("release steps")
}

0 comments on commit bdc4b18

Please sign in to comment.