mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-30 04:50:45 +02:00
fix(blobs): do not upload artifacts if ids is set to empty (#4921)
<!-- Hi, thanks for contributing! Please make sure you read our CONTRIBUTING guide. Also, add tests and the respective documentation changes as well. --> <!-- If applied, this commit will... --> Closes https://github.com/goreleaser/goreleaser/issues/4920 <!-- Why is this change being made? --> ... <!-- # Provide links to any relevant tickets, URLs or other resources --> ...
This commit is contained in:
parent
f588b07adc
commit
5d7631f713
@ -111,7 +111,7 @@ func doUpload(ctx *context.Context, conf config.Blob) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
filter := artifact.Or(byTypes...)
|
filter := artifact.Or(byTypes...)
|
||||||
if len(conf.IDs) > 0 {
|
if conf.IDs != nil {
|
||||||
filter = artifact.And(filter, artifact.ByIDs(conf.IDs...))
|
filter = artifact.And(filter, artifact.ByIDs(conf.IDs...))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user