Comments (21)
I've noticed this too and I've been holding back on releasing the new version because of it. I've emailed GitHub support about it with a very vague response from them. It seems like something has changed this last week, because previously the error was only caused if you are using a GitHub token, but they told me it's because a human didn't trigger the build even though an access token with a very greedy permission scope was used.
Oh interesting - we'll dig into this more and followup if we have more questions.
I've also posted about it here: https://github.community/t5/GitHub-Actions/Github-action-not-triggering-gh-pages-upon-push/m-p/38065/highlight/true#M3210 and here: https://github.community/t5/GitHub-Pages/Cannot-Build-Page/m-p/37618#M2324 but have yet to receive any actionable response.
@tcbyrd - If you're available are you able to look into this? I have a test repo with the issue: https://github.com/JamesIves/doughnut-generator
from github-pages-deploy-action.
And yes, I forgot to mention, if I make any changes to the gh-pages
branch after deployment, the error disappears.
from github-pages-deploy-action.
This seems to be a problem for all gh-pages deploy actions. Switching to master branch in settings/Github_Pages and then switching back to gh-pages cause it to deploy correctly
from github-pages-deploy-action.
Just got word back from GitHub support. Essentially what's happening here is that the GITHUB_TOKEN
is being persisted by another action, causing the failure when it gets to the deploy step because of the existence of a GITHUB_TOKEN
.
Update the actions/checkout
step in your config to point to v1
and this issue should be resolved.
steps:
- name: Checkout
uses: actions/checkout@v1
Just tested it and it worked for me. Please let me know if you have similar luck, I've updated the action config examples in the README if you want to take a look there.
With that being said I'm going to push up v3
today.
from github-pages-deploy-action.
I used v2 and releases/v3 of
github-pages-deploy-action
with checkout@v1 to no avail. Getting the same error'GitHub Pages build failed'
. Heres an example project. Its hosted on shilangyu.dev/actions-testing and you can see the content does not match the gh-pages branch.
Try changing GITHUB_TOKEN
out for a personal access token in the deploy step and it should work.
from github-pages-deploy-action.
I also got depressed by this problem..., I found something special, the first time you run the action in v2/v3, the page will be built successfully, but if u update sth and push, when the action goes there will be one more workflow 'github pages', although it shows success the page still failed in building.
from github-pages-deploy-action.
Try changing
GITHUB_TOKEN
out for a personal access token in the deploy step and it should work.
This does work. Let's hope GITHUB_TOKEN
gets a fix soon
from github-pages-deploy-action.
Also @freearhey some of the issues you're referring to such as the CNAME
and .nojekyll
items are only relevant to v3
, which hasn't been released yet. If you're using v2
you need to follow the steps in that README.
from github-pages-deploy-action.
@JamesIves I brought the text from the docs of v3
precisely because I tried to use v3
in this case. At that time, I thought that the problem could be precisely that .nojekyll
is recreated every time from scratch. When using v2
, of course I was guided by the documentation for v2
.
from github-pages-deploy-action.
@JamesIves I brought the text from the docs of
v3
precisely because I tried to usev3
in this case. At that time, I thought that the problem could be precisely that.nojekyll
is recreated every time from scratch. When usingv2
, of course I was guided by the documentation forv2
.
Please follow the instructions here to try the beta of v3 - https://github.com/JamesIves/github-pages-deploy-action/tree/releases/v3-beta
If you're still experiencing the issue you mentioned with the CNAME files please open a new issue. I'd like to keep this on-topic for the deployment issue.
from github-pages-deploy-action.
Same issue. All actions run passed but Github page deploy failed.
from github-pages-deploy-action.
I used v2 and releases/v3 of github-pages-deploy-action
with checkout@v1 to no avail. Getting the same error 'GitHub Pages build failed'
. Heres an example project. Its hosted on shilangyu.dev/actions-testing and you can see the content does not match the gh-pages branch.
from github-pages-deploy-action.
Changing the actions/checkout
version to v1
really helped. I also had to roll back to JamesIves/github-pages-deploy-action@master
because v3
currently causes a 'Cannot read property 'name' of undefined'
error. But the main problem is solved, so thank you anyway!
from github-pages-deploy-action.
@freearhey Can you open another issue with the v3 issue with the logs? Would super appreciate it!
from github-pages-deploy-action.
From what I understand it's in the works on GitHubs end, but not ready yet. This action just supports it for when it does work. I pre-maturely added it because people kept trying it anyway,.
from github-pages-deploy-action.
@JamesIves I'm getting this issue, switching to v1 didn't help. I'm already setting with: token
with a PAT. I'm using Github Enterprise. Any clue?
from github-pages-deploy-action.
@JamesIves I'm getting this issue, switching to v1 didn't help. I'm already setting
with: token
with a PAT. I'm using Github Enterprise. Any clue?
This is a very old issue. Please create a new issue or discussion that outlines your problem and I'll do my best to support.
from github-pages-deploy-action.
@JamesIves I'm facing the same issue as @leoglobant... using GitHub Enterprise, once deployed by this GH Action β build fails, if I deploy the same files manually β everything works.
I do have
permissions:
contents: write
in the workflow file and using checkout@v2
and github-pages-deploy-action@v4
And I see that files are deployed/committed properly to gh-pages
branch. I don't understand what is the root cause of such GitHub behaviour. Any suggestions?
from github-pages-deploy-action.
Switching to use Token instead of permissions in the workflow file helped me to solve the issue (maybe update documentation?).
from github-pages-deploy-action.
Switching to use Token instead of permissions in the workflow file helped me to solve the issue (maybe update documentation?).
This issue helped me a lot :-D Thanks.
To be specific, I registered a PAT of maintainer account and passed it as github-pages-deploy-action
's token, and it works now.
In my case, I hadn't set with: token:
at all, but my workflow worked well. It's because the action's always triggered by maintainers, so it was given the default GITHUB_TOKEN enough to push to gh-pages
.
However, for some reason, it seems not to have enough permission to deploy github pages.
So I set PAT of maintainer account as github-pages-deploy-action
's token and all is fine now.
Reference:
Who can use this feature
People with admin or maintainer permissions for a repository can configure a publishing source for a GitHub Pages site.
Note: If your site has not published automatically, make sure someone with admin permissions and a verified email address has pushed to the publishing source.
from github-pages-deploy-action.
For me, on Checkout v1 / v3 in GitHub Enterprise, setting write permissions as the readme suggested didn't help - still get Your site is having problems building: Page build failed
.
Switching GH Pages to main
and back to gh-pages
fixes the error, and the website looks good (temporary manual solution, to prove the files are correct).
I will try the token suggestion above.
from github-pages-deploy-action.
Related Issues (20)
- remote: Permission denied when publish to anonter repository HOT 4
- Commit fails with "process '/usr/bin/git' failed with exit code 128" HOT 3
- Error: You must provide the action with a folder to deploy.
- This project is now deprecated
- GitHub Actions `set-output` command is deprecated and will be disabled soon HOT 2
- Reporting a vulnerability HOT 1
- `token` not being used sometimes HOT 2
- fatal: A branch named 'main' already exists. HOT 7
- Pushed file asyncapi.html gets renamed to index.html HOT 3
- Can't push folder in project HOT 2
- remote: Permission denied to github-actions[bot] HOT 1
- I have this problem, everyone can help me ? This is for a react project HOT 1
- Git config not found for centos:7 HOT 2
- Action succeeds even when push fails HOT 1
- GitHub Pages re-building with Jekyll despite .nojekyll present HOT 1
- A file is missing or not transferred to github pages HOT 5
- The directory you're trying to deploy named /home/runner/work/RivioxTweaks/RivioxTweaks/dist doesn't exist. HOT 1
- There is nothing to commit. Exiting early⦠HOT 1
- The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 1 β HOT 3
- fatal: Authentication failed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from github-pages-deploy-action.