‘Do not attach yourself to the outcome of your actions’
This famous instruction from the Bhagvad Gita is actually quite simple to follow; it has the enormous benefit of keeping you in sane space when your work is about to come to fruition. In the likelihood of excitement or disappointment ensuing from your labour, mere observation of the outcome from a distance can most likely be the best you can derive out of the expectations you have from having done something towards a goal.
Imagine yourself to be a curious onlooker of your own work. Follow the result of your work like a researcher would, keeping yourself at a rational distance from the outcomes. Analyse the end result, give yourself points on things done well and areas of improvement. Close the diary of the fruits of your result for the time being, take a break to think about the entire project or task you had set yourself out to do, and move forward towards the next milestone.
This is simpler to do than it reads. You will save your heart, and mind, from the emotional roller coaster associated with any kind of expectation.