21

I have a working Github Page. (Specifically: a Project Page with Jekyll that lives at [username].github.io/[project_name]/.)

I can deploy. (By pushing changes to my gh-pages branch and waiting a few minutes for it to build.)

How can I check the deploy/build status?

It's annoying to wait an unknown number of minutes after I push my changes to Github. I searched for 20 minutes and was surprised to find nothing. Am I misunderstanding something or using the wrong terms? o.O

thewillcole
  • 2,943
  • 3
  • 30
  • 35
  • 1
    Obviously you can look at the URL where it lives yourself, so what exactly are you wanting? A notification? – Robin Green Nov 26 '13 at 21:57
  • 3
    Honestly? A progress bar :D But a status message would be cool too (it's 'building' still? great, it's not broken). And if that's too much to ask for, a notification would be waaay better than nothing. – thewillcole Nov 26 '13 at 22:03

3 Answers3

27

The easiest thing to do is to go to the commits page for your repo (https://github.com/USERNAME/REPO/commits/master) and there will be a green check mark when it's done building. For example:

enter image description here

You can also query the Github API. For example using curl:

$ curl -u USERNAME https://api.github.com/repos/USERNAME/REPO/pages/builds/latest

{
  "url": "https://api.github.com/repos/USERNAME/REPO/pages/builds/12345678",
  "status": "built",
  ...
"created_at": "2018-07-26T17:23:42Z"

https://developer.github.com/v3/repos/pages/#get-latest-pages-build

Some example statuses you might see:

  • queued
  • building
  • built
  • error
bmaupin
  • 14,427
  • 5
  • 89
  • 94
10

A simple solution is to add a time-stamp somewhere in your site.

For example, I added a time-stamp in my about page (EDIT again: I have put time-stamp inside my rss.xml now). Then I'd know if the site has been deployed or not.

Inside my rss.xml, I have:

<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>

It gives time-stamp after deploying:

<lastBuildDate>Tue, 29 Apr 2014 21:07:52 +1200</lastBuildDate>
Yi Zeng
  • 32,020
  • 13
  • 97
  • 125
4
  1. On GitHub, navigate to the main page of the repository.

  2. On the right side, you will find Environments and Github Pages.

  3. Click on GitHub pages to see the deployment status

Reference Link : https://docs.github.com/en/github/administering-a-repository/viewing-deployment-activity-for-your-repository