This is based on this answer on stackoverflow but changed to allow both a 'in progress' public website and a 'development website', both publicly available.
Note: this guide describes how to deploy a project website, (e. g. username.github.io/projectname
). If you're deploying a user website (e. g. username.github.io
), you'll need to adjust some options.