1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-05 00:59:04 +02:00

feat: upload to s3

This commit is contained in:
Carlos Alexandro Becker
2018-05-13 13:08:14 -03:00
committed by Carlos Alexandro Becker
parent 58d8ac62ac
commit 1c426847d9
11 changed files with 199 additions and 15 deletions

View File

@ -9,6 +9,7 @@ import (
"github.com/google/go-github/github"
"github.com/goreleaser/goreleaser/config"
"github.com/goreleaser/goreleaser/context"
"github.com/goreleaser/goreleaser/internal/nametemplate"
"golang.org/x/oauth2"
)
@ -89,7 +90,7 @@ func (c *githubClient) CreateFile(
func (c *githubClient) CreateRelease(ctx *context.Context, body string) (int64, error) {
var release *github.RepositoryRelease
title, err := releaseTitle(ctx)
title, err := nametemplate.Apply(ctx, "github", ctx.Config.Release.NameTemplate)
if err != nil {
return 0, err
}