question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need to clarify docs about a hidden GitHub pages requirement on private repository

See original GitHub issue

Is your feature request related to a problem? Please describe

I created a new repo and use this action to publish to the gh-pages branch but the repo’s supposed GitHub page returned a 404 even after choosing gh-pages branch from the dropdown in the repo’s GitHub pages setting.

I contacted GitHub support about this and their response was

In order to be built and published for the very first time, a GitHub Pages repository must have a commit pushed to it by a user with admin permissions for the repository. In this case, it looks like while you committed to the master branch, the only commit pushed to the gh-pages branch was from github-actions.

Following this tip fixed my problem.

Describe the solution you’d like

Add an explanation to the docs. The easiest solution would be for the user to push any content under their own account to the gh-pages branch and after that this action can take over the publishing.

Describe alternatives you’ve considered

There’s no alternatives. This seems to be a GitHub requirement.

Additional context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
letmaikcommented, Jun 20, 2020

I had the same issue. On a new repository, I followed the two-step instructions but it was impossible to get it deployed. The only way out was to manually push a commit to gh-pages. And after that the automatic deploys worked.

2reactions
sl4mcommented, Jun 24, 2020

Glad I found this issue. I was having trouble with a private repo myself and found that pushing a manual commit to gh-pages branch solved the problem as suggested.

@peaceiris If you need some help with the README for this particular issue, let me know

Read more comments on GitHub >

github_iconTop Results From Across the Web

Private pages for a private Github repo - Stack Overflow
@Dennis: No, it doesn't - your repo can be private. But the published pages will be public and GitHub doesn't have a built-in...
Read more >
Publish Your Project Documentation with GitHub Pages
Create a /docs/index.md file on your repository's master branch. · Add your content and any necessary Jekyll front matter, then commit your ...
Read more >
GitLab Pages
GitLab always deploys your website from a specific folder called public in your repository. When you create a new project in GitLab, a...
Read more >
End-To-End Walkthrough - nbdev - Fast.ai
By the end of this section you'll have your own nbdev repo with tests, ... need to enable GitHub Pages for your repo...
Read more >
octokit/rest.js
Most of GitHub's REST API endpoints have matching methods. ... If the repository is private you must use an access token with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found