Comments (8)
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.
Hi @kinoute
Could you show me your Gemfile
content?
Thanks and regards
from jekyll-deploy-action.
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.
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.
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 nodejsWorks 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.
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.
Can we close this issue?
from jekyll-deploy-action.
@MatheusRich Sure, if you have any issue, don't hesitate to reach out me. : )
from jekyll-deploy-action.
Related Issues (20)
- Relative urls broken HOT 2
- Error when trying to run libvips for Jekyll-Picture-Tag HOT 10
- Do I need this project structure? HOT 1
- Is there a way to use a specific Ruby version? HOT 2
- Could not find JS runtime HOT 3
- Sudden step failure without any change HOT 3
- failed: "It's conflicted to deploy on same branch master" HOT 1
- gh-pages branch remains empty after push to master; pages build and deployment not triggered HOT 5
- The deployment occasionally silently fails HOT 19
- [feature] Use group/endgroup HOT 1
- Support to deploy site via SSH protocol
- how do i setup a custom domain? HOT 2
- `with.repository` parameter is unable to access external repository: "The requested URL returned error: 403" HOT 2
- Document that the vendor directory must be excluded HOT 1
- Error as bundler requires Ruby version >=3.0.0 HOT 1
- Error installing bundler every hour for four days HOT 7
- Ruby Version 2 > 3 HOT 1
- Archlinux keyring not updating HOT 11
- No videos are showing on a post even after using `Jekyll Deploy Action` in my workflow. HOT 1
- Can't install the correct Bundler version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jekyll-deploy-action.