Closed macmarrum closed 2 years ago
But in my case, the action fails to push files to GitHub Pages
Why?
You have not given me a status sufficient to see your repo and gh-pages settings, and so I do not know what is different in your case.
I can give you all rights on the freeplane-docs repository if you promise me to get it to work. Then I could concentrate on coding. Please let me know how you see it.
You have not given me a status sufficient to see your repo and gh-pages settings, and so I do not know what is different in your case.
I don't know how to give other permissions. I think that on personal accounts there is only the Collaborator
access right.
I can give you all rights on the freeplane-docs repository if you promise me to get it to work. Then I could concentrate on coding. Please let me know how you see it.
OK. I promise to get it to work.
I think you can access the freeplane-docs repo settings, right?
Yes, I can. Thanks
I have no access to Environments. The environment github-pages
needs to be extended to accept from main
branch.
Done
Replaced gh-pages by main branch
Done. It works OK: tested with #89
It looks to me that GitHub changed the way GitHub Pages are deployed.
The action
JamesIves/github-pages-deploy-action
relies on the mechanism where Pages are auto-deployed from an orphan branchgh-pages
. But in my case, the action fails to push files to GitHub Pages. I noticed that the files generated by that action can be pushed by the built-in mechanismDeploy from a branch
, fromgh-pages
.In GitHub docs I can see a different mechanism, i.e. built-in actions to upload an artefact and to deploy it to Pages: https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow
mdbook-github-pages.yml
defines a (manually-triggered) workflow, which uses this mechanism.To use it as the main (automated) GitHub-Pages deployment mechanism
mdbook.yml
needs to be removed or the workflow trigger disabledmdbook-github-pages.yml
, the workflow trigger needs to be enabled (on: push ...)Deploy from a branch
needs to be switched toGitHub Actions
@dpolivaev what's your view on this, please?