Wait until the last possible time. Tell admin early and ask them to keep it quiet. If they can't start interviewing until you resign then you will need to work through that. Do what's best for the kids. The district needs a fair shot at replacing you with a quality teacher and the kid deserve that too. That said, you saying you are leaving will create drama, (most likely), so avoid the drama while doing what's best for the kids.