You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-17 01:42:37 +02:00
fix: breaking: use artifact.Name for the blob key instead of artifact.Path (#1082)
This commit is contained in:
committed by
Carlos Alexandro Becker
parent
0aa2538e34
commit
ce9b2c96d0
@ -79,10 +79,11 @@ func (b Bucket) Upload(ctx *context.Context, conf config.Blob, folder string) er
|
|||||||
g.Go(func() error {
|
g.Go(func() error {
|
||||||
log.WithFields(log.Fields{
|
log.WithFields(log.Fields{
|
||||||
"provider": bucketURL,
|
"provider": bucketURL,
|
||||||
|
"folder": folder,
|
||||||
"artifact": artifact.Name,
|
"artifact": artifact.Name,
|
||||||
}).Info("uploading")
|
}).Info("uploading")
|
||||||
|
|
||||||
w, err := conn.NewWriter(ctx, filepath.Join(folder, artifact.Path), nil)
|
w, err := conn.NewWriter(ctx, filepath.Join(folder, artifact.Name), nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "failed to obtain writer")
|
return errors.Wrap(err, "failed to obtain writer")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user