Comments (16)
I've sorted it out using a custom GitHub Actions workflow.
Under Settings > Pages > Build and deployment select Github Actions instead of the default Deploy From a Branch then choose (or create) a jekyll configuration.
A config YAML file will be generated and placed under .github/workflows/
Here is what the file that i've used looks like :
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll site to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0
with:
ruby-version: '3.1' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Build with Jekyll
# Outputs to the './_site' directory by default
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Hope this helps!
from jekyll.
Hi, academic-pages are all affected by this bug, any latest news to fix the bug soon?
from jekyll.
Without changing anything and pushing a build just now everything is back to working fine. Thank you to those who made the fix on this.
from jekyll.
This should be fixed now. Via #9544 (comment).
from jekyll.
This will be fixed by #9552. You'll need to wait for a new Jekyll release and for the GitHub pages gem to update.
from jekyll.
I'm facing exactly the same issue. When will this be released? Any plan?
from jekyll.
I'm also facing the same issue. Any plans to release the fix soon?
from jekyll.
Adding my +1 to this, I also have a fork of academic-pages and I am affected by the bug. Is there any temporary workaround until the release comes out?
from jekyll.
+1 I am also facing this issue using the minimal mistakes template.
from jekyll.
+1 I am also facing this issue using the minimal mistakes template.
from jekyll.
Liquid Exception: undefined method `yaml_file?' for #<Jekyll::Page @name="app.md"> in /_layouts/default.html
I recently redid the template, but it was assembled before. Posted a new blog post today and got this error.
from jekyll.
While awaiting the fix - is there a workaround?
from jekyll.
Same error here.
from jekyll.
Same error here. This error was raised this week. Last week, there was no problem building the pages:
/usr/local/bundle/gems/jekyll-3.9.5/lib/jekyll/excerpt.rb:91: warning: Jekyll::Excerpt#yaml_file? at /usr/local/lib/ruby/2.7.0/forwardable.rb:154 forwarding to private method Jekyll::Page#yaml_file?
Liquid Exception: undefined method `yaml_file?' for #<Jekyll::Page:0x000056309be129f0> in /_layouts/default.html
from jekyll.
I did create a jekyll.yml file as described above. I got a Ruby error
Error: The process '/opt/hostedtoolcache/Ruby/3.1.4/x64/bin/bundle' failed with exit code 15
, which is another problem.
The pages are building now after fix #9544 was applied.
from jekyll.
I did create a jekyll.yml file as described above. I got a Ruby error
Error: The process '/opt/hostedtoolcache/Ruby/3.1.4/x64/bin/bundle' failed with exit code 15
, which is another problem.The pages are building now after fix #9544 was applied.
You probably should create your own file depending on the versions you are using.
The fix is just a revert of jekyll-relative-links to version 0.6.1. So we will likely to expect the same dependency error should they consider upgrading the versions in the future.
Thing is, if your project is built locally without errors then there should be no reason to fail when built by GitHub.
GitHub Actions comes to adress these kind of issues by allowing to use the same environment as in development.
So I think that creating your own configuration file will definitely solve the problem once and for all.
from jekyll.
Related Issues (20)
- I initially had logic that was a lot more tolerant of `s`s. And then I ran into the [🥔 🐛 - potato bug](https://github.com/check-spelling/check-spelling/releases/tag/0.0.17-alpha) -- namely the plural of `potato` is not `potatos`. It was so embarrassing, since I learned the proper spelling in elementary school. It was also a big deal as a [Vice President suggested `potatoe` to a student](https://abcnews.go.com/Politics/video/june-15-1992-dan-quayle-misspells-potato-48017343).
- [Docs]:
- [Bug]: Unable to build website HOT 1
- [Bug]: `permalink_ext': undefined method `end_with?' for {}:Hash HOT 2
- [Bug]: error running "bundle exec jekyll s" HOT 4
- [Bug]: related_posts prefers longer articles
- [Bug]: Can't serve website due to sass-embedded version HOT 5
- [Bug]: Jekyll release v3.9.5 is missing from GitHub, only exists in ruby gems HOT 7
- feat:
- [Bug]: Obsolete nodeJS version HOT 2
- [Bug]: Empty include parameter when assign a forloop attribute to it.
- Unquoted language code "no" not recognized in _config.yml HOT 2
- [Bug]: pipe character to single row table priority unexpectedly high
- feat: Adding relative path to current URL support HOT 2
- [Bug]: Livereload don't work for project initiated with --blank flag HOT 1
- feat: XMPP: Post to PubSub HOT 2
- [Bug]: jekyll changes filenames when copying files to _site on build HOT 1
- feat: can you make a grapgic fenweator for instagram and youtube with jekyll with a javaacript or a webrtc based json , or even an encrypted json to a rest blob
- [Bug]: exclude broken for md files HOT 3
- SCSS class not found when i call to the function HOT 1
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.