Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues building github pages site #1

Open
joshuarubin opened this issue Jan 29, 2019 · 10 comments
Open

Issues building github pages site #1

joshuarubin opened this issue Jan 29, 2019 · 10 comments

Comments

@joshuarubin
Copy link

joshuarubin commented Jan 29, 2019

Just wondering if you ran into any issues with pages saying (on repo settings page):

Your site is having problems building: Page build failed.

I have the .nojekyll in the root of both my master and gh-pages branches.

If I push an empty commit to the gh-pages branch, things work fine.

@khanhicetea
Copy link
Owner

Hi @joshuarubin ,

Yes, yesterday I found something wrong with the Github-pages building.

First, I got email from Github said that my site building has been failed because of Liquid tag from Jekyll. Then I added .nojekyll like they said in documents to disable Jekyll. I thought this will fix the issue.

Next day, my site hasn't been updated new content. Then I go to settings to check and see the message like you mentioned - "Your site is having problems building: Page build failed." (hm... it's hard to debug what going on)

Then, I looking for documents and check what was wrong. And I found that Github only trigger Github Pages build only if email of commit should be your verified email in Github. So I fix it by this commit

But, it won't work as I expected ! Something weird here (I tried to push a blank index.html and CNAME to gh-pages and it works).

Finally, I just send a github help request to the team, hope it will be solved soon.

Please update me if you know anything else. Thanks !

@khanhicetea
Copy link
Owner

I will try to re-enable Circle-CI deploying to test around :) will update soon

@joshuarubin
Copy link
Author

Glad to hear I'm not crazy! I've sent 2 requests to github support (without a response) and have tried pinging a few people like @jessfraz, @angelarivera and @mcolyer without success.

@khanhicetea
Copy link
Owner

Tested with CircleCI (same strategy) and it works well :

  • No need the same email of account
  • The different between 2 ways are :
    • Github Actions push to HTTPS within GITHUB_TOKEN
    • CircleCI push to SSH within public key

I hope Github can show the build error message 😞

@khanhicetea
Copy link
Owner

This is what I got from Github Staff

Hi there KhanhIceTea!

Thank you for writing in to GitHub Support.

I see you're part of the Actions beta, and you're trying to trigger a Page build with an Action. That puts you right on the bleeding edge! 😄

Currently that behavior isn't supported, so the official advice is to wait until Actions has been rolled out to everyone and is no longer in beta. A commit made manually will still trigger a build.

Unofficially, I've heard talk of a somewhat hacky solution where the push back to GitHub, if it’s done with a Personal Access Token for your account, will build the site, but I haven't tried this myself so can't guarantee it.

If there's anything else I can do, give me a shout!

Cheers,

Matt R

I will try to use personal access token then post result here

@joshuarubin
Copy link
Author

I got the same note, I just tried it at https://github.com/joshuarubin/hugo-deploy-gh-pages and it seems to work.

@khanhicetea
Copy link
Owner

Yeah, glad to see it working :)

@khanhicetea
Copy link
Owner

hi @joshuarubin ,

I tried another strategy (using SSH deploy key, it's repository scoped so it's safer than Personal Access Token)

https://github.com/khanhicetea/gh-actions-hugo-deploy-gh-pages

Btw, I will keep this issue opened until it works after they release final of Github Actions

Thanks

@joshuarubin
Copy link
Author

Great idea with the deploy key!

@mcolyer
Copy link

mcolyer commented Feb 1, 2019

Apologies you all had trouble getting this to work, it sounds like support resolved it but also wanted to mention this similar action in case you all find it useful: https://github.com/maxheld83/ghpages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants