install ruby; follow jekyll insturctions till the installation of jekyll itself
brew install chruby ruby-install xz
ruby-install ruby 3.1.3
add below lines to your .bash_profile
source /opt/homebrew/opt/chruby/share/chruby/chruby.sh
source /opt/homebrew/opt/chruby/share/chruby/auto.sh
add .ruby-version
file of with ruby version to your jekyll site project.
3.1.3
follow this to install jekyll
if you want to do a update, like using new jekyll, ruby or bundle version, you can remove the Gemfile.lock
first then do below:
bundle install
bundle exec jekyll serve
now you can push the code to github and let it do the job.