How to write a book, the daily upload/webnovel method:
1. Write
2. write
3. write
4. write
5. punish yourself because you aren't writing
6. write some more
7. edit (only if step 5 is skipped)
8. release
9. get screwed by privacy policy of writing site (looking at you Webnovel)
10. do this daily until you either become popular, complete the story, or die from overworking and exhaustion
Also, having morning sun wake you up makes you much less sleepy, because even if you're asleep, your brain registers the sunlight and stops releasing sleep hormones (melatonin, I think, though I'd need to check).