I became a writer by writing. I remember almost all of my undergraduate creative writing teachers saying,
and things will happen
Quoted by Carrie Oeding from her teachers in her BA English.
Well worth the read. Reading any writer’s story provides inspiration to see how others have found their path to publication (if that is your aim).
Keep in mind though that what works for one won’t necessarily replicate for others. You need to find your own path. And, as Carrie says, you do that by writing. And writing. And writing some more.