How to force GitHub Pages build?

From GitHub support, 2014-06-07:

It’s not currently possible to manually trigger a rebuild, without pushing a commit to the appropriate branch.


Edit:

As Andy pointed out in the comments, you can push an empty commit with the command:

git commit -m 'rebuild pages' --allow-empty
git push origin <branch-name>

Edit 2:

Thanks to GitHub Actions, it’s fairly easy to trigger a daily publish: https://stackoverflow.com/a/61706020/4548500.

Leave a Comment