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:
parent
af97e63dd3
commit
dc0de4ce59
@ -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
|
||||
})
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user