1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00

fix: artifact filtering

This commit is contained in:
Carlos Alexandro Becker 2024-03-20 00:53:51 -03:00
parent af97e63dd3
commit dc0de4ce59
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -474,6 +474,7 @@ func ByIDs(ids ...string) Filter {
filters = append(filters, func(a *Artifact) bool {
// checksum and source archive are always for all artifacts, so return always true.
return a.Type == Checksum ||
a.Type == UploadableFile ||
a.Type == UploadableSourceArchive ||
a.ID() == id
})

View File

@ -160,7 +160,7 @@ func doPublish(ctx *context.Context, client client.Client) error {
artifact.ByType(artifact.Certificate),
artifact.ByType(artifact.LinuxPackage),
artifact.ByType(artifact.SBOM),
)
}
filters := artifact.Or(typeFilters...)
if len(ctx.Config.Release.IDs) > 0 {