Skip to content

Commit

Permalink
fix: artifact filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Mar 20, 2024
1 parent af97e63 commit dc0de4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/artifact/artifact.go
Expand Up @@ -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
})
Expand Down
2 changes: 1 addition & 1 deletion internal/pipe/release/release.go
Expand Up @@ -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 {
Expand Down

0 comments on commit dc0de4c

Please sign in to comment.