There is no secret actually.. it is well known fact that Google love fresh and relevant content.. so, create contents that are fresh and relevant to your niche. And secondly, implement structured data according to Google recommendations... with that said.. i focus on at least 3 things..
1. regular and consistent fresh content relevant to my niche with on-page seo
2. implement structured data according to google recommendation
3. build and increase my traffic sources .. (there are a lot of things to do this.. submit post, forums, link building, and many more)
That was a tricky question and to be honest, there's NO SECRET at all.
After my 10+ years in the online marketing field, I can tell you ... shortcuts do not work.
The only way to rank high up on the search engine results is stellar content quality and white-hat (or gray hat) link building.
Think like this.
Linkbuilding is nothing but promoting your content to others, whether via email outreach or via social media posting, for it gain traction in the web. And your content is your "product". Unless your product is better than what is already available in the market, it's of no use.
It's plain economics. Your product must be differentiated and be of VALUE to its target audience.
Create relevant content. Fulfill user's intent and make your content relevant to search query you will rank.
Other than that use ahrefs and start finding link opportunities by studying competitor's backlink profile, rather than going on forums try to get contextual link from good traffic driving blogs of other websites. In this way their traffic will also flow to your blog and google will start recognizing your content as relevant and authoritative.