How to force GitHub Pages build?

前端 未结 9 1642
天涯浪人
天涯浪人 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:13

    The empty commit didn't work for me, but based on @benett answer, this worked for me:

    Open Postman, create a new request with this URL: https://api.github.com/repos/[user_name]/[repo_name]/pages/builds (replace with your name and repo), and select POST method.

    Before you run it, go to the headers tab and add a new key Accept with the value application/vnd.github.mister-fantastic-preview+json

    Now you can run it and visit your pages again.

提交回复
热议问题