Update Jan 23, 2023: GitHub has automated renaming your default branch from the web UI, so it’s even easier to do the right thing with your branch names.
I’ve been wanting to change the default branch for some projects on GitHub from master to main but until recently I could only publish GitHub Pages projects from master or a GitHub Pages branch. GitHub recently removed that limitation so you can publish from an arbitrary branch.