简体   繁体   English

Github Jekyll 工作流程问题

[英]Github Jekyll Workflow issue

I tried to add the "Jekyll" workflow to my repository in Github, but every time it runs it is marked as failure.我尝试将“Jekyll”工作流程添加到我在 Github 中的存储库中,但每次运行它都会被标记为失败。

Here is an error message, I tried to remove Gemfile.lock from exclude ( _config.yml ) but it didn't help... Here is a repository to which I'm trying to add a workflow: https://github.com/igorkowalczyk/blog这是一条错误消息,我试图从排除( _config.yml )中删除 Gemfile.lock 但它没有帮助......这是我试图添加工作流的存储库: https://github。 com/igorkowalczyk/博客

Build the site in the jekyll/builder container
##[error]Process completed with exit code 23.
Fetching i18n 0.9.5
Installing i18n 0.9.5
Using rb-fsevent 0.10.4
Using rb-inotify 0.10.1
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching sass 3.7.4
Installing sass 3.7.4
Fetching jekyll-sass-converter 1.5.2
Installing jekyll-sass-converter 1.5.2
Using listen 3.2.1
Using jekyll-watch 2.2.1
Fetching kramdown 1.17.0
Installing kramdown 1.17.0
Using liquid 4.0.3
Using mercenary 0.3.6
Using pathutil 0.16.2
Fetching rouge 3.22.0
Installing rouge 3.22.0
Using safe_yaml 1.0.5
Fetching jekyll 3.8.7
Installing jekyll 3.8.7
Fetching jekyll-feed 0.15.0
Installing jekyll-feed 0.15.0
Using jekyll-paginate 1.1.0
There was an error while trying to write to `/srv/jekyll/Gemfile.lock`. It is
likely that you need to grant write permissions for that path.
##[error]Process completed with exit code 23.

Github错误

After a so many attempts to fix the tests, i finnaly find a solution, thanks you @fredrik *经过多次尝试修复测试后,我终于找到了解决方案,谢谢@fredrik *

Here is my workflow file:这是我的工作流程文件:

name: Jekyll

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Build the site in the jekyll/builder container
      run: |
        docker run \
        -v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
        jekyll/builder:latest /bin/bash -c "chmod a+w /srv/jekyll/Gemfile.lock && chmod 777 /srv/jekyll && jekyll build --future"

and my Gemfile :和我的Gemfile

source "https://rubygems.org"
ruby RUBY_VERSION
gem "jekyll", "~> 3.8.5"
gem "minima", "~> 2.5", ">= 2.5.1"
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
gem "jekyll-paginate", "~> 1.1"
end

* Answer in comment: " here you have my google search. I literally just took the error and pasted into google." * 在评论中回答:“ 在这里你有我的谷歌搜索。我只是把错误粘贴到谷歌中。”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM