Code Monkey home page Code Monkey logo

Comments (8)

kinoute avatar kinoute commented on May 23, 2024 5

My project's repository is private, sorry. But just adding nodejs to your Dockerfile should fix the issue for many users.

I'm now using this action: https://github.com/helaili/jekyll-action

Without nodejs, I had the same error as here. So I made use of the pre_build_commands argument this action offer to install nodejs with apk:

name: Build and deploy jekyll site

on:
  push:
    branches:
      - master
      # - source
      # It is highly recommended that you only run this action on push to a
      # specific branch, eg. master or source (if on *.github.io repo)

jobs:
  jekyll:
    runs-on: ubuntu-16.04
    steps:
    - uses: actions/checkout@v2

    # Use GitHub Actions' cache to shorten build times and decrease load on servers
    - uses: actions/cache@v2
      with:
        path: vendor/bundle
        key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
        restore-keys: |
          ${{ runner.os }}-gems-
    # Standard usage
    - uses:  helaili/jekyll-action@master
      with:
        token: ${{ secrets.GH_TOKEN }}
        target_branch: 'gh-pages'
        pre_build_commands: apk --update add imagemagick nodejs

Works like a charm now!

from jekyll-deploy-action.

jeffreytse avatar jeffreytse commented on May 23, 2024

Hi @kinoute

Could you show me your Gemfile content?

Thanks and regards

from jekyll-deploy-action.

kinoute avatar kinoute commented on May 23, 2024

It seems related to the lack of a Javascript engine. I had the same error on another action for Jekyll. Adding the nodejs package before bundle make the error disappear.

from jekyll-deploy-action.

jeffreytse avatar jeffreytse commented on May 23, 2024

Hi @kinoute

Could you provide me the project's repository to me? So that I can help to investigage this issue.

Thanks and regards

from jekyll-deploy-action.

sid-r-singh avatar sid-r-singh commented on May 23, 2024

My project's repository is private, sorry. But just adding nodejs to your Dockerfile should fix the issue for many users.

I'm now using this action: https://github.com/helaili/jekyll-action

Without nodejs, I had the same error as here. So I made use of the pre_build_commands argument this action offer to install nodejs with apk:

name: Build and deploy jekyll site

on:
  push:
    branches:
      - master
      # - source
      # It is highly recommended that you only run this action on push to a
      # specific branch, eg. master or source (if on *.github.io repo)

jobs:
  jekyll:
    runs-on: ubuntu-16.04
    steps:
    - uses: actions/checkout@v2

    # Use GitHub Actions' cache to shorten build times and decrease load on servers
    - uses: actions/cache@v2
      with:
        path: vendor/bundle
        key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
        restore-keys: |
          ${{ runner.os }}-gems-
    # Standard usage
    - uses:  helaili/jekyll-action@master
      with:
        token: ${{ secrets.GH_TOKEN }}
        target_branch: 'gh-pages'
        pre_build_commands: apk --update add imagemagick nodejs

Works like a charm now!

Thanks for your solution @kinoute . I had exactly the same problem & after using pre_build_commands to install nodejs in https://github.com/helaili/jekyll-action solved the problem.

from jekyll-deploy-action.

jeffreytse avatar jeffreytse commented on May 23, 2024

Hi @kinoute

Thanks for the patience, now I need to tell you the news, the latest release v0.3.0 has supported the pre-build commands to install additional dependencies. Beyond that, it also improved the building speed over almost 75%!

Hope you have a good day! : )

Thanks and Regards

from jekyll-deploy-action.

MatheusRich avatar MatheusRich commented on May 23, 2024

Can we close this issue?

from jekyll-deploy-action.

jeffreytse avatar jeffreytse commented on May 23, 2024

@MatheusRich Sure, if you have any issue, don't hesitate to reach out me. : )

from jekyll-deploy-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.