One pulse to ON/OFF bistable latching relay
There are many ways to do this. Discrete, D FF /2 counter   Astable FF

Choose whatever Relay meets your needs and select Base R to drive 5% of Coil current. Use Darlington and 1% if this exceeds 20mA.

Avoid crosstalk of power grounds between Relay and CMOS ,  like the plague.