-
I’ve been experimenting with that for a day, and here is what I’ve discovered. I’ve created a Template Project (https://github.com/sneas/cv-template), which contains a GitHub Action. The action generates an HTML website and pushes it to As an experiment, I created a new public project from that template (https://github.com/sneas/cv-4). The action had been triggered and a new No matter what I do (mostly - retrigger the action by pushing new code to master) - the GH Page doesn’t show up. The only way to make the page show up is to go to the project’s settings, change GH Pages source branch to This behavior is looking counterintuitive to me, that’s why I assume it’s a bug. Is it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi there! 👋 Welcome to the Community! You have run into a quirk of using Actions to build Pages that is coming up more and more often. In order to be built and published for the very first time, a GitHub Pages repository must have a commit pushed to the publishing source branch by a user with admin permissions for the repository, such as the repository owner. In these cases, the Once a commit has been pushed to the This is on our engineers’ radar, so stay tuned for future changes which may fix this quirk. I hope that helps to explain! Let us know if there’s anything else we can do. |
Beta Was this translation helpful? Give feedback.
-
Hi, @tmetz! Thank you for your reply. It’s a pity that a site couldn’t be created automatically with github-actions. Guess, I’ll just have to update my documentation to fix the problem for now. |
Beta Was this translation helpful? Give feedback.
Hi there! 👋 Welcome to the Community!
You have run into a quirk of using Actions to build Pages that is coming up more and more often.
In order to be built and published for the very first time, a GitHub Pages repository must have a commit pushed to the publishing source branch by a user with admin permissions for the repository, such as the repository owner.
In these cases, the
github-actions
user pushes, but doesn’t have admin access to the repository.Once a commit has been pushed to the
gh-pages
branch by a user with admin permissions, you should find the site live and available shortly thereafter. Subsequent commits pushed by accounts with write access (likegithub-actions
) will then…