Are there any patents that will never be published?

What we are talking about now is publicity, that is, letting the content know to unspecified people.

Not public is to let specific people know the content.

Some patents, such as military patents, cannot be known to the public, but only to a few people (related people, also called specific people). These contents are not public (not specific people).