从 Jekyll 部署 github 页面是否存在更新问题?

问题描述 投票:0回答:1

提交并将更改推送到文件后,最后一步是部署网站,

这就是deploy.yml 文件的样子

name: deploy

on:
  push:
    branches:
      - master
      - main
  pull_request:
    branches:
      - master
      - main
  workflow_dispatch:

permissions:
  contents: write

jobs:
  deploy:
    # available images: https://github.com/actions/runner-images#available-images
    runs-on: ubuntu-latest
    steps:
    - name: Checkout 🛎️
      uses: actions/checkout@v3
    - name: Setup Ruby
      uses: ruby/setup-ruby@v1
      with:
        ruby-version: '3.2.2'
        bundler-cache: true
    - name: Update _config.yml ⚙️
      uses: fjogeleit/[email protected]
      with:
        commitChange: false
        valueFile: '_config.yml'
        propertyPath: 'giscus.repo'
        value: ${{ github.repository }}
    - name: Install and Build 🔧
      run: |
        pip3 install --upgrade jupyter
        npm install -g mermaid.cli
        npm install -g purgecss
        export JEKYLL_ENV=production
        bundle exec jekyll build --lsi
        purgecss -c purgecss.config.js
    - name: Deploy 🚀
      if: github.event_name != 'pull_request'
      uses: JamesIves/github-pages-deploy-action@v4
      with:
        folder: _site

我运行此命令

bin/deploy --user
但出现以下错误

Error:  Logging at level: debug Configuration file: /github/workspace/./_config.yml GitHub Pages: github-pages v228 GitHub Pages: jekyll v3.9.3 Theme: jekyll-theme-primer Theme source: /usr/local/bundle/gems/jekyll-theme-primer-0.6.0 Requiring: jekyll-github-metadata Requiring: jekyll-seo-tag Requiring: jekyll-feed Requiring: jekyll-sitemap Requiring: jemoji Requiring: jekyll-coffeescript Requiring: jekyll-commonmark-ghpages Requiring: jekyll-gist Requiring: jekyll-github-metadata Requiring: jekyll-paginate Requiring: jekyll-relative-links Requiring: jekyll-optional-front-matter Requiring: jekyll-readme-index Requiring: jekyll-default-layout Requiring: jekyll-titles-from-headings GitHub Metadata: Initializing... Source: /github/workspace/. Destination: /github/workspace/./_site Incremental build: disabled. Enable with --incremental Generating... EntryFilter: excluded /Gemfile EntryFilter: excluded /bin Reading: _posts/2018-12-22-distill.md Reading: _posts/2020-09-28-twitter.md Reading: _posts/2015-05-15-images.md Reading: _posts/2023-11-27-code.md Reading: _posts/2022-02-01-redirect.md Reading: _posts/2015-03-15-formatting-and-links.md Reading: _posts/2023-07-12-post-bibliography.md Generating: JekyllOptionalFrontMatter::Generator finished in 0.000214953 seconds. Generating: JekyllReadmeIndex::Generator finished in 0.00117622 seconds. Jekyll Feed: Generating feed for posts Generating: JekyllFeed::Generator finished in 0.000644705 seconds. Generating: Jekyll::JekyllSitemap finished in 0.000918378 seconds. Generating: Jekyll::Paginate::Pagination finished in 3.066e-06 seconds. Generating: JekyllRelativeLinks::Generator finished in 0.000551321 seconds. Generating: JekyllDefaultLayout::Generator finished in 0.000259886 seconds. Generating: JekyllTitlesFromHeadings::Generator finished in 1.6571e-05 seconds. Rendering: 404.html Pre-Render Hooks: 404.html Rendering Liquid: 404.html GitHub Metadata: Generating for AyoubAjarra/ayoubajarra.github.io GitHub Metadata: Calling @client.pages("AyoubAjarra/ayoubajarra.github.io", {}) Rendering Markup: 404.html Rendering Layout: 404.html Layout source: site github-pages 228 | Error: Liquid syntax error (line 17): Unknown tag 'bibliography' 

我不确定当前的 jekyll 版本发生了什么变化,该 url 没有出现在 girhub/pages 中,看起来 docker 有问题...

github deployment jekyll
1个回答
0
投票

在某些页面中,您使用

bibliography
作为液体标签。

Error: Liquid syntax error (line 17): Unknown tag 'bibliography' 
© www.soinside.com 2019 - 2024. All rights reserved.