Productivity gurus will tell you to wake up at 3am, run 10 miles, meditate for an eternity, and top it off with a vegan protein shake. For most people, that gets old really fast.
What does work for me personally is setting up rewards. Each time I run, I give myself a square of chocolate. Also, I put a box of chocolate biscuits in my illustration studio on campus to motivate me to get there. Then I always carry a chocolate protein bar in my backpack that I only allow myself to eat when I'm in the animation studio.
When I have projects, I noticed that my brain tells me that the floor needs sweeping or that I need to get my 200WAD done. Or it might try to convince me that I should look up the weather or the price of that Christmas gift I promised my friend. I defer those tasks as rewards for finishing my task at hand and remind myself that there are only so many hours in a day. By deliberate deprivation, these menial tasks seem more appealing, but doesn't exhaust my restraint because I'm not super excited to get to those tasks. They're mildly appealing also because they're an excuse to leave my work temporarily.
Lastly, I write a to-do list on a sticky note and stick it to the back of my phone every morning. Whenever I reach to my phone for a distraction, I just flip it, so I'm reminded of what I need to get done.
Over the years, I've tried a plethora of lifehacks, but rewarding myself at specific checkpoints seems to work most consistently for me.