Comments (19)
I’d love to, and originally the action was, but unfortunately there’s an issue with the Github secret provided with actions that prevents Github Pages from rebuilding your site with it, that means that you’ll be able to commit to the branch, but it will never update. It works for private repostitories, but not public ones.
I’m keeping an eye on the situation and will test this again when actions leaves beta. For now I’d suggest limiting the permissions on the PAT you create if you’d like to use the action!
from github-pages-deploy-action.
@dhimmel
FYI. https://github.community/t5/GitHub-Actions/Github-action-not-triggering-gh-pages-upon-push/m-p/31266/highlight/true#M743
GitHub team is focusing this issue.
from github-pages-deploy-action.
FYI. peaceiris/actions-gh-pages#9 (comment)
Community Manager said:
The
GITHUB_TOKEN
that is provided as a part of GitHub Actions doesn't have authorization to create any successive events, such as GitHub Pages builds. So while you can push to thegh-pages
branch using theGITHUB_TOKEN
, it won't spawn a GitHub Pages build. You'll need to create a personal access token and supply it to your GitHub Action as a secret.
peaceiris/actions-gh-pages#9 (comment)
Yes, it seems like that's not a bug but a normal behavior in the context of the security rule imposed in Github Actions which is "A workflow can not trigger another workflow".
from github-pages-deploy-action.
Following up on this @gerardabello - here's the response I've received from GitHub's developer support.
After speaking with the team about this, they let me know that server-to-server requests won't kick off a page build, whether it's creating a commit or explicitly requesting a page build.
As you've observed, user-to-user server requests (using a personal access token or an OAuth token) can build a Pages project via push or requesting a page build because they're linked to a specific user account.
I see how it would be useful to open this functionality to GitHub Actions, so I've let the team know about this internally.
I've also provided GitHub with some additional information about the private repository behavior I mentioned in my initial post. I'll let you know if I hear anything more.
from github-pages-deploy-action.
Still no updates from GitHub on this. I've emailed them twice now with no reply.
from github-pages-deploy-action.
Quite the limitation that a github action commit cannot trigger another action. Using a personal access token to deploy a single repository is bad practice and the fact that actions require this for something as basic as deploying to gh-pages is evidence that workflows should be able to trigger workflows. Or at least that gh-pages commits should be exempt from this limitation.
Let us know if there are any workarounds that support using GITHUB_TOKEN
for authentication.
from github-pages-deploy-action.
I've recently emailed GitHub support, I'll let you know if I hear back!
from github-pages-deploy-action.
I'll keep an eye on this. Doesn't seem possible just yet.
from github-pages-deploy-action.
@JamesIves thanks for researching this. Ping me if you need any help.
from github-pages-deploy-action.
The option for using a GitHub token vs an access token is already available in v2 and v3. I'm going to close this issue, please follow this thread to stay up-to-date: https://github.community/t5/GitHub-Actions/Github-action-not-triggering-gh-pages-upon-push/m-p/31266/highlight/true#M743
from github-pages-deploy-action.
Some additional context here: maxheld83/ghpages#1
from github-pages-deploy-action.
Thanks @alex-page!
from github-pages-deploy-action.
Oops that issue only has a bit of context, check the PR out maxheld83/ghpages#18
from github-pages-deploy-action.
Hoping to have a fix for this today.
from github-pages-deploy-action.
I've got a PR open for this, but the issue still appears to be present: #13
from github-pages-deploy-action.
^ Cross posting this here. I'm going to merge in this feature/PR and point to this issue.
from github-pages-deploy-action.
It seems github has ditched fixing the GITHUB_TOKEN
? It's sad because it would be much more convenient :/
from github-pages-deploy-action.
It seems github has ditched fixing the GITHUB_TOKEN?
Has there been a change in the last few days? Deploying to a branch that then triggers a GitHub Pages build using GITHUB_TOKEN
has been working for several months, except for the first deployment as described here. Is this no longer the case?
from github-pages-deploy-action.
It works well.
Log: https://github.com/peaceiris/actions-gh-pages/commits/gh-pages
peaceiris/actions-gh-pages: GitHub Actions for GitHub Pages
from github-pages-deploy-action.
Related Issues (20)
- 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
- Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌ HOT 2
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.