mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
fix: deploy goreleases to snap store
This commit is contained in:
parent
fbdbff884b
commit
f7268a0979
@ -78,4 +78,4 @@ snapcraft:
|
||||
wrapped in your favorite CI.
|
||||
grade: stable
|
||||
confinement: classic
|
||||
|
||||
publish: true
|
||||
|
@ -54,7 +54,7 @@ const defaultNameTemplate = "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arc
|
||||
type Pipe struct{}
|
||||
|
||||
func (Pipe) String() string {
|
||||
return "creating Linux packages with snapcraft"
|
||||
return "Snapcraft Packages"
|
||||
}
|
||||
|
||||
// Default sets the pipe defaults
|
||||
@ -208,6 +208,7 @@ func create(ctx *context.Context, arch string, binaries []artifact.Artifact) err
|
||||
}
|
||||
|
||||
func push(ctx *context.Context, snap artifact.Artifact) error {
|
||||
log.WithField("snap", snap.Name).Info("pushing")
|
||||
/* #nosec */
|
||||
var cmd = exec.CommandContext(ctx, "snapcraft", "push", "--release=stable", snap.Path)
|
||||
if out, err := cmd.CombinedOutput(); err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user