Publishing content doesn’t guarantee rankings. It is easier when you target long tail or less competitive phrases, but for the most part you need to make sure you’re working on quality content that satisfies your targets intent. Are you familiar with googles E-A-T? I’d look into that if you don’t. Also make sure the basics like the pages being crawled is taken care of.