As there is no ":eval yes-export" (which would inhibit interactive evaluation, and well allow it during export), the only thing you can do is either set your "publishing" code blocks to ":eval no" or ":eval query".
That way, they won't be executed automatically: not at all, or not just during interactive buffer evaluation, depending on what you'd answer to the query.