jeffreytse / jekyll-deploy-action

🪂 A Github Action to deploy the Jekyll site conveniently for GitHub Pages.
MIT License
339 stars 44 forks source link

I cannot get custom plugins and running workflows at the same time #41

Closed list4c closed 2 years ago

list4c commented 2 years ago

Hi, I'm playing with this Github action. It deploys my blog, but the somehow I can't get it to deploy the state of the gh-pages branch.

My repository with the blog is here: https://github.com/list4c/list4c.github.io/tree/gh-pages

In pictures:

image

This is how the figures look when my publishing source is main(set in Repository - > Settings -> Pages)

If I change it to gh-pages, then the website content gets updated and the timeago plugin works, showing yesterday - see here:

image

So I was thinking that I should change it to gh-pages, but when I do it, the workflows stop running. So that must be the wrong option. What could I be doing wrong?

So I would like to: have workflows running as defined + have the plugin correctly working on the deployed site, on a continuous basis. I guess something might be set up incorrectly with my deployments.

I'll greatly appreciate your expertise on this matter

list4c commented 2 years ago

Hi! Ok, I found out what was going on :) I deactivated one of the workflows, thinking that Github Actions somehow 'remembered' another github action that I tried before yours. But in fact the during deployment there are two workflows running - one that builds the site and pushes the output to gh-pages branch

image

And then the Github-owned workflow which builds and deploys the page from the selected source branch (gh-pages here), right?

image

So, after activating back that workflow and switching the source to gh-pages branch, everything works like a charm.

jeffreytse commented 2 years ago

Hi @list4c

Sorry for replying your issue late, have you solved this issue, I'm happy to help you. : )

Thanks & Regards

list4c commented 2 years ago

Yes, thanks for asking!