How to force GitHub Pages build?

前端 未结 9 1630
天涯浪人
天涯浪人 2020-12-12 14:41

Every GitHub repository can have (or be) a GitHub Pages website, that can be built with Jekyll. GitHub builds the site every time you push a new commit.
Is there a way t

9条回答
  •  北海茫月
    2020-12-12 15:09

    I had this problem for a while, and pushing to master branch didn't change anything on myapp.github.io, for two reasons :

    1 - Build

    No matter how many time I tried to push my work on master, build would not start. I found a workaround by modifying my file in Github online editor (open your index.html and edit it on Github website, then commit)

    2 - Caching issues

    Even after a successful build, I would still see the exact same page on myapp.github.io, and hard reloading with Ctrl + Shift + R wouldn't solve it. Instead, if using Chrome, inspect your page, head into the Application tab, select "Clear storage" in the left menu, and click on "Clear site data" at the bottom of the menu.

提交回复
热议问题