joshlarsen / jekyll4-deploy-gh-pages Goto Github PK
View Code? Open in Web Editor NEWBuilds & deploys a Jekyll 4.x site to gh-pages branch of the same repository.
License: MIT License
Builds & deploys a Jekyll 4.x site to gh-pages branch of the same repository.
License: MIT License
The Error show in build process
Building Jekyll site...
bundler: failed to load command: jekyll (/github/workspace/vendor/bundle/ruby/2.6.0/bin/jekyll)
ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
/github/workspace/vendor/bundle/ruby/2.6.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in `autodetect'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/execjs-2.7.0/lib/execjs.rb:5:in `<module:ExecJS>'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/execjs-2.7.0/lib/execjs.rb:4:in `<top (required)>'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/autoprefixer-rails-9.7.6/lib/autoprefixer-rails/processor.rb:2:in `require'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/autoprefixer-rails-9.7.6/lib/autoprefixer-rails/processor.rb:2:in `<top (required)>'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/autoprefixer-rails-9.7.6/lib/autoprefixer-rails.rb:39:in `require_relative'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/autoprefixer-rails-9.7.6/lib/autoprefixer-rails.rb:39:in `<top (required)>'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-autoprefixer-1.0.2/lib/jekyll/autoprefixer/autoprefixer.rb:4:in `require'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-autoprefixer-1.0.2/lib/jekyll/autoprefixer/autoprefixer.rb:4:in `<top (required)>'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-autoprefixer-1.0.2/lib/jekyll/autoprefixer.rb:8:in `require_relative'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-autoprefixer-1.0.2/lib/jekyll/autoprefixer.rb:8:in `<module:Autoprefixer>'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-autoprefixer-1.0.2/lib/jekyll/autoprefixer.rb:5:in `<module:Jekyll>'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-autoprefixer-1.0.2/lib/jekyll/autoprefixer.rb:4:in `<top (required)>'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-autoprefixer-1.0.2/lib/jekyll-autoprefixer.rb:7:in `require_relative'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-autoprefixer-1.0.2/lib/jekyll-autoprefixer.rb:7:in `<top (required)>'
/usr/local/bundle/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in `require'
Is it possible to add ExecJS Runtime for build jekyll
Have you ever seen this type of error when running this action?
It's based off this template repo
https://github.com/CloudCannon/vonge-jekyll-bookshop-template/tree/main
Have the action set up in the following way
name: Build and Deploy to Github Pages
on:
push:
branches:
- main
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Use GitHub Actions' cache to cache dependencies on servers
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
# Use GitHub Deploy Action to build and deploy to Github
- uses: jeffreytse/[email protected]
with:
provider: 'github'
token: ${{ secrets.GITHUB_TOKEN }} # It's your Personal Access Token(PAT)
repository: '' # Default is current repository
branch: 'gh-pages' # Default is gh-pages for github provider
jekyll_src: './site/' # Default is root directory
jekyll_cfg: '_config.yml' # Default is _config.yml
jekyll_baseurl: '' # Default is according to _config.yml
bundler_ver: '>=0' # Default is latest bundler version
cname: '' # Default is to not use a cname
actor: '' # Default is the GITHUB_ACTOR
pre_build_commands: '' # Installing additional dependencies (Arch Linux)
Using other workflows, integrating testing isn't straightforward (jeffreytse/jekyll-deploy-action#5 and jeffreytse/jekyll-deploy-action#9). With this action is it possible to have an action that tests whether the site builds in a PR, and then a separate one that deploys upon merging?
is there a way to use a bundle cache to speed up builds
something like this instead of just bundle
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
add tell people to add
before the build if they want to use a cache
Have been including ruby-lsp
in dev section of gem file for Ruby projects (for better dev experience in vscode along with associated extension) and got this error using the action when adding it to a Jekyll project.
Bundler found conflicting requirements for the Ruby version:
In Gemfile:
ruby-lsp (~> 0.3.5) was resolved to 0.3.5, which depends on
Ruby (>= 2.7.3)
Current Ruby version:
Ruby (= 2.6.6)
Thanks for this action, it's really great and works perfectly on a few repos I have but in this repo I've been getting an error over and over that I can't figure out how to resolve:
bundler: failed to load command: jekyll (/github/workspace/vendor/bundle/ruby/2.6.0/bin/jekyll)
I forked the action so that I could add --trace
to the build
but this also didn't reveal a path to a solution for me. Any ideas where the error is originating?
Here is the rest of the error output with the trace:
Building Jekyll site...
Configuration file: /github/workspace/_config.yml
Source: /github/workspace
Destination: /github/workspace/_site
Incremental build: disabled. Enable with --incremental
Generating...
AutoPages: Generating tags pages
AutoPages: Generating categories pages
AutoPages: Generating collections pages
Pagination: Complete, processed 83 pagination page(s)
Jekyll Feed: Generating feed for posts
bundler: failed to load command: jekyll (/github/workspace/vendor/bundle/ruby/2.6.0/bin/jekyll)
Encoding::UndefinedConversionError: "\xE2" from ASCII-8BIT to UTF-8
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/url.rb:158:in `encode'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/url.rb:158:in `unescape_path'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/static_file.rb:58:in `destination'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/cleaner.rb:60:in `block (2 levels) in new_files'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/site.rb:344:in `block (2 levels) in each_site_file'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/site.rb:343:in `each'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/site.rb:342:in `each_site_file'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/cleaner.rb:60:in `block in new_files'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/cleaner.rb:59:in `tap'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/cleaner.rb:59:in `new_files'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/cleaner.rb:25:in `obsolete_files'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/cleaner.rb:15:in `cleanup!'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/site.rb:211:in `cleanup'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/site.rb:77:in `process'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/command.rb:28:in `process_site'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/commands/build.rb:65:in `build'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/commands/build.rb:36:in `process'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `block in process_with_graceful_fail'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `each'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/command.rb:89:in `process_with_graceful_fail'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
/github/workspace/vendor/bundle/ruby/2.6.0/gems/jekyll-4.0.0/exe/jekyll:15:in `<top (required)>'
/github/workspace/vendor/bundle/ruby/2.6.0/bin/jekyll:23:in `load'
/github/workspace/vendor/bundle/ruby/2.6.0/bin/jekyll:23:in `<top (required)>'
after initial success using the workflow, and publishing the site, on subsequent commits to master
i get
Building Jekyll site...
43
/github/workspace/vendor/bundle/ruby/2.6.0/gems/ffi-1.12.2/lib/ffi/library.rb:112: [BUG] Illegal instruction at 0x00007f8099fe3e65
44
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
45
- Control frame information -----------------------------------------------
47
c:0037 p:---- s:0193 e:000192 CFUNC :open
48
c:0036 p:0022 s:0187 e:000186 BLOCK /github/workspace/vendor/bundle/ruby/2.6.0/gems/ffi-1.12.2/lib/ffi/library.rb:112 [FINISH]
…
[NOTE]
942
You may have encountered a bug in the Ruby interpreter or extension libraries.
943
Bug reports are welcome.
944
For details: https://www.ruby-lang.org/bugreport.html
not sure what's going on, but maybe a bump do the docker image can help?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.