An activity must have at least one ticket package set to “Is Enabled” and “Visible to the Public” to be published.
In the Publishing tab, an “Issues Detected” alert will appear to inform you of this error.
See the “How to Add Session Packages and Ticket Prices” section of this quick start guide to create a public, enabled ticket package.