Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 11 of 27

Re: Github action not triggering gh-pages upon push

@ethomson Just re-iterating that this is still not working for public repositories, even after the General Availablity. You can push to the gh-pages branch with a `GITHUB_TOKEN`, but the push does not trigger a GitHub pages deploy.

 

Doing something else to trigger a deploy (like a manual empty commit) does trigger a deploy with the updated content however.

Pilot Lvl 1
Message 12 of 27

Re: Github action not triggering gh-pages upon push

Now, I tested deployment with `github_token` using the GitHub Pages Action on some public repositories. It looks working well...

 

I do not know any official announcement of the GitHub starts to support triggering the GitHub Pages build event using `GITHUB_TOKEN` on public repositories...

Highlighted
Copilot Lvl 3
Message 13 of 27

Re: Github action not triggering gh-pages upon push

Yup, I can confirm on my end that the GITHUB_TOKEN secret works for deploying code on the gh-pages branch.

You can view a relevant commit where I reverted the current token (a PAT) to the GITHUB_TOKEN secret here and the deployment run here.

Highlighted
Copilot Lvl 2
Message 14 of 27

Re: Github action not triggering gh-pages upon push

It would be really handy if GitHub Actions can trigger GitHub Pages build using `GITHUB_TOKEN`.

You can do the "workaround" https://github.com/peaceiris/actions-gh-pages#1-add-ssh-deploy-key using SSH deploy keys, but it's adding complexity and I'm not sure if this can be automated if you have many GitHub repos.

 

When you use `GITHUB_TOKEN` there is nothing to configure - you just create "GitHub Action" and you are done.

 

Thank you...

Highlighted
Copilot Lvl 3
Message 15 of 27

Re: Github action not triggering gh-pages upon push

It seems to have been established that it is a bug by now. The fact it works as expected with private repositories, like reported by @BryanSchuetz and tested by @peaceiris , but not with public repositories is an inconsistency in itself that can not be considered in another way than a bug.

 

Let's just hope that the Github team will solve it one day or another ^^

Highlighted
Copilot Lvl 2
Message 16 of 27

Re: Github action not triggering gh-pages upon push

I can confirm that a Private repository does "fix" the issue. It's still a bit of a weird scenario and the error message really doesn't help troubleshooting the issue :)

Highlighted
Ground Controller Lvl 2
Message 17 of 27

Re: Github action not triggering gh-pages upon push

I ran into this issue too.

 

https://github.com/rhysd/github-action-benchmark

 

While I was developing the action in private repository, it worked fine. But once I published it, deploying gh-pages started to fail.

Highlighted
Copilot Lvl 3
Message 18 of 27

Re: Github action not triggering gh-pages upon push

As of last week I'm not even able to deloy using an access token anymore. Has something changed? I just end up with Page Build Errorr everytime. 

 

Edit: This was resolved by changing `actions/checkout@master` to `actions/checkout@v1`.

Highlighted
Copilot Lvl 2
Message 19 of 27

Re: Github action not triggering gh-pages upon push

Seeing this same issue in my public repo. My action is setup on a schedule, so the ‘avoiding recursive actions’ feature should not even apply to this action. Also, I’m using checkout@v2. Action: https://github.com/lightswitch05/php-version-audit/blob/master/.github/workflows/auto-updates.yml
Highlighted
Ground Controller Lvl 1
Message 20 of 27

Re: Github action not triggering gh-pages upon push

Also experienced this issue. Pushing to public repo with ${{ secrets.GITHUB_TOKEN }} does not trigger a successful github pages build. Manual workaround is to change the branch which github pages is to deploy for a moment and then change it back to the original branch.