There's a new tool in the October 2024 release of Illustrator that allows you to attach and align objects to a curved or straight-line path.
In 2 minutes, learn how to use the new Objects on Path tool to distribute objects along a path, and then make further edits using various widgets.
Icons (affiliate): https://1.envato.market/QyVVD6