https://www.circuitstate.com/tutorials/how-to-get-your-kicad-pcb-design-ready-for-automated-assembly-kicad-6-tutorial/
How to Get Your KiCad PCB Design Ready for Automated Assembly – KiCad 6 Tutorial