Closed dseeker closed 4 years ago
Looks like your gems aren’t being installed. Do you have a Gemfile in the root of your repository? What does your workflow look like? If you link up your repo I can have a look for you if you like.
Yes I do.
source "https://rubygems.org"
gem "jekyll", "~> 3.8.6"
group :jekyll_plugins do
gem "jekyll-feed"
gem "jekyll-menus"
end
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
I just cloned a ubuild template in forestry and tried adding an Action https://forestry.io/blog/ubuild-a-new-theme-for-static-sites-using-blocks/
I updated the action to show errors from the bundle install—so you should be able to see this for yourself, but it looks like the Gemfile is pinned to bundler 2.0.2 I think you should be able to remove:
BUNDELED WITH 2.0.2
from the Gemfile.lock file and have it build correctly. Don't forget that you also need to change the destination in jekyll to a build
directory.
Thanks for the help, I ended up putting together another Action recipe. I don't really like that it commits to the same branch first and then copy the folder to gh-pages, but I can live with it
name: Jekyll Build & Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build jekyll/builder
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"
- name: Commit to Master
uses: github-actions-x/commit@v2.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
push-branch: 'master'
commit-message: '[ Generate Jekyll Website ]'
force-add: 'true'
- name: Deploy to gh-pages
uses: docker://peaceiris/gh-pages:v2.5.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./_site
trying to figure out why getting this errors when building, can you help?