1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-19 20:57:53 +02:00

fix: breaking: use artifact.Name for the blob key instead of artifact.Path (#1082)

This commit is contained in:
Kei Arima 2019-07-17 06:08:46 +09:00 committed by Carlos Alexandro Becker
parent 0aa2538e34
commit ce9b2c96d0

View File

@ -79,10 +79,11 @@ func (b Bucket) Upload(ctx *context.Context, conf config.Blob, folder string) er
g.Go(func() error {
log.WithFields(log.Fields{
"provider": bucketURL,
"folder": folder,
"artifact": artifact.Name,
}).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 {
return errors.Wrap(err, "failed to obtain writer")
}