Overall, you just do it. Seriously, that’s the law.
However, you do have to pay a fee of $0.091 for every song you press to sell an album that you are doing a cover on.
https://syncsongwriter.com/blog/legally-releasing-cover-songs
Thanks for the information.