Github Actions workflow for Blog plugin not rendering blog? #6786
-
Hello! Thanks for this wonderful resource. I'm trying to launch my personal blog for the first time. I've got everything working properly locally (and it looks fantastic 😎😀🤓 ) but when I try to publish via the Github Actions workflow (using the ci.yml for Insiders documentation: https://squidfunk.github.io/mkdocs-material/publishing-your-site/#with-github-actions-insiders) the site publishes but not the blog? are there libraries I'm not loading? incantantions I'm not uttering? In addition, when I try to run this snippet i get a file locking error: Here's my ci.yml And how the website renders: Thanks in advance for your help rc |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
You mean the blog is empty? A common cause for this is that blog posts are marked as drafts, so they would render with Not sure about the file locking error. Can you share some more info, such as a log? |
Beta Was this translation helpful? Give feedback.
-
Hello @rc-sea, As for the issue with the lack of Blog on your site, for some reason the deployment isn't being handled/triggered 🤔 I never used CNAMEs or deployed to external domain with GitHub Actions, but the issue lies not in MkDocs or the theme, just some hiccup on your deployment end on GitHub ✌️ |
Beta Was this translation helpful? Give feedback.
Hello @rc-sea,
as for the error with
apt-get install pngquant
the log says there is an issue with permissions, so I guess the simplest solution is to run the command withsudo
: https://stackoverflow.com/questions/57982945/how-to-apt-get-install-in-a-github-actions-workflowsudo apt-get install -y pngquant
A more thorough investigation is needed, whether there is a better solution and/or we need to update the documentation.
As for the issue with the lack of Blog on your site, for some reason the deployment isn't being handled/triggered 🤔
You can see here that the last deployment is from 3 days ago https://github.com/rc-sea/exuperian/deployments
Since you save the files (that are used for t…