简体   繁体   中英

How to use Travis CI to rebuild a Jekyll website every day?

I have a Jekyll based website hosted on Github pages and I would like to rebuild files every day automatically. I searched online and I found it could be done with Travis CI.

From my understanding, I would have to create a script which would then push an empty commit to github every day.

I never used CI service before so I would really appreciate if someone could explain how to do it, how to write a script, step by step.

I feel your pain. I have been searching this too and I think it is way to complex to do this with Travis CI. It is possible, but it is a nightmare to setup. The process is (insufficiently) described here: Automating Jekyll/Github Pages builds based on time , justifying this question.

The reason that this is overly complex is that Travis CI is not meant for this job and is basically overkill. It would be really cool if Forestry.io or CloudCannon (or any other hosted Jekyll service) would implement this, so it would become just flipping a switch.

It is funny to see that this question of the OP follows this one: Count days in Jekyll . You get the impression that the OP thinks that daily builds are the solution for the 'counting days problem'. I think that the solution to that problem is Javascript. However, daily builds of a Jekyll site would enable other basic website functions, like 'post scheduling', which cannot be solved/is much harder to solve by Javascript.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM