A thing I have learnt is to remember to bask.
Factor in at least 10% of the time you took to just feel good about a task. That could be a hobby you achieved something in, or just doing the washing up. Give yourself time to get whatever dopamine hit you can. It creates a positive association, that improves your chances of doing better in the future.