You've already forked goreleaser
							
							
				mirror of
				https://github.com/goreleaser/goreleaser.git
				synced 2025-10-30 23:58:09 +02:00 
			
		
		
		
	wip: publish
This commit is contained in:
		
				
					committed by
					
						 Carlos Alexandro Becker
						Carlos Alexandro Becker
					
				
			
			
				
	
			
			
			
						parent
						
							441e5e551f
						
					
				
				
					commit
					5474d1ede7
				
			| @@ -32,8 +32,8 @@ func (Pipe) String() string { | ||||
| 	return "creating homebrew formula" | ||||
| } | ||||
|  | ||||
| // Run the pipe | ||||
| func (Pipe) Run(ctx *context.Context) error { | ||||
| // Publish brew formula | ||||
| func (Pipe) Publish(ctx *context.Context) error { | ||||
| 	client, err := client.NewGitHub(ctx) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
|   | ||||
| @@ -5,6 +5,8 @@ import ( | ||||
| 	"fmt" | ||||
|  | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe" | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/brew" | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/scoop" | ||||
| 	"github.com/goreleaser/goreleaser/pkg/context" | ||||
| 	"github.com/pkg/errors" | ||||
| ) | ||||
| @@ -24,7 +26,10 @@ type Publisher interface { | ||||
| 	Publish(ctx *context.Context) error | ||||
| } | ||||
|  | ||||
| var publishers = []Publisher{} | ||||
| var publishers = []Publisher{ | ||||
| 	brew.Pipe{}, | ||||
| 	scoop.Pipe{}, | ||||
| } | ||||
|  | ||||
| // Run the pipe | ||||
| func (Pipe) Run(ctx *context.Context) error { | ||||
|   | ||||
| @@ -24,8 +24,8 @@ func (Pipe) String() string { | ||||
| 	return "creating Scoop Manifest" | ||||
| } | ||||
|  | ||||
| // Run the pipe | ||||
| func (Pipe) Run(ctx *context.Context) error { | ||||
| // Publish scoop manifest | ||||
| func (Pipe) Publish(ctx *context.Context) error { | ||||
| 	client, err := client.NewGitHub(ctx) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
|   | ||||
| @@ -7,7 +7,6 @@ import ( | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/archive" | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/artifactory" | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/before" | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/brew" | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/build" | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/changelog" | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/checksums" | ||||
| @@ -22,7 +21,6 @@ import ( | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/put" | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/release" | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/s3" | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/scoop" | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/sign" | ||||
| 	"github.com/goreleaser/goreleaser/internal/pipe/snapcraft" | ||||
| 	"github.com/goreleaser/goreleaser/pkg/context" | ||||
| @@ -56,7 +54,5 @@ var Pipeline = []Piper{ | ||||
| 	put.Pipe{},             // upload to http server | ||||
| 	s3.Pipe{},              // push to s3/minio | ||||
| 	release.Pipe{},         // release to github | ||||
| 	brew.Pipe{},            // push to brew tap | ||||
| 	scoop.Pipe{},           // push to scoop bucket | ||||
| 	publish.Pipe{},         // publishes artifacts | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user