ppoffice / hexo-theme-icarus

A simple, delicate, and modern theme for the static site generator Hexo.
https://ppoffice.github.io/hexo-theme-icarus/
MIT License
6.28k stars 1.54k forks source link

action 遇到问题 #1175

Closed Xu-Hardy closed 1 year ago

Xu-Hardy commented 1 year ago

确保你在提交Bug反馈之前仔细阅读了Hexo文档Icarus用户指南,和GitHub issues来了解你的问题是否已经被他人提出过。

Bug描述 简洁清晰地描述你遇到的Bug是什么。

action遇到问题报错,看起来是不兼容,

系统与环境 列出你的Hexo和Icarus的版本和配置。

hexo: 6.3.0 hexo-cli: 4.3.0 os: win32 10.0.22621 node: 18.13.0 v8: 10.2.154.23-node.21 uv: 1.44.2 zlib: 1.2.13 brotli: 1.0.9 ares: 1.18.1 modules: 108 nghttp2: 1.51.0 napi: 8 llhttp: 6.0.10 uvwasi: 0.0.13 openssl: 3.0.7+quic cldr: 42.0 icu: 72.1 tz: 2022f unicode: 15.0 ngtcp2: 0.8.1 nghttp3: 0.7.0

CI文件

name: Deploy GitHub Pages

name: Deploy GitHub Pages

触发条件:在 push 到 master 分支后

on: push: branches:

任务

jobs: build-and-deploy:

服务器环境:最新版 Ubuntu

runs-on: ubuntu-latest
steps:
  # 拉取代码
  - uses: actions/checkout@v3
  - uses: actions/setup-node@v3
    with:
      node-version: latest

  # 部署到 GitHub markdown BOOK
  - name: Deploy markdown Book
    uses: JamesIves/github-pages-deploy-action@releases/v4
    with:
      ACCESS_TOKEN: ${{ secrets.HEXO }}
      BRANCH: source
      FOLDER: source/_posts

  # 生成静态文件
  - name: Build
    run: npm install && npm run build

  # 部署到 GitHub Pages
  - name: Deploy Pages
    uses: JamesIves/github-pages-deploy-action@releases/v4
    with:
      ACCESS_TOKEN: ${{ secrets.HEXO }}
      BRANCH: gh-pages
      FOLDER: public

复现方式 列出复现这个Bug的步骤,如:

  1. 访问‘...’
  2. 点击’...‘
  3. 下拉到‘...’
  4. 出现‘...’的错误

期望行为 简洁清晰地描述没有这个情况下你期望得到的结果。

截图 如果可以的话,请附上几张截图来帮助说明你遇到的问题。

Run actions/jekyll-build-pages@v1 with: source: . destination: ./_site future: false buildrevision: b7deb1761be194251233f2df6a997140567a36d7 verbose: true token: *** /usr/bin/docker run --name ghcrioactionsjekyllbuildpagesv10484bbb9 --label ea425b --workdir /github/workspace --rm -e "INPUT_SOURCE" -e "INPUT_DESTINATION" -e "INPUT_FUTURE" -e "INPUT_BUILD_REVISION" -e "INPUT_VERBOSE" -e "INPUT_TOKEN" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_ID_TOKEN_REQUEST_URL" -e "ACTIONS_ID_TOKEN_REQUEST_TOKEN" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/Xu-Hardy.github.io/Xu-Hardy.github.io":"/github/workspace" ghcr.io/actions/jekyll-build-pages:v1.0.4 /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:84:in rescue in gemspec': The icarus theme could not be found. (Jekyll::Errors::MissingDependencyException) from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:81:ingemspec' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:19:in root' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:12:ininitialize' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:439:in new' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:439:inconfigure_theme' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:55:in config=' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:23:ininitialize' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:30:in new' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:30:inprocess' from /usr/local/bundle/gems/github-pages-227/bin/github-pages:70:in block (3 levels) in <top (required)>' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:inblock in execute' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in each' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:inexecute' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in go' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary.rb:19:inprogram' from /usr/local/bundle/gems/github-pages-227/bin/github-pages:6:in <top (required)>' from /usr/local/bundle/bin/github-pages:23:inload' from /usr/local/bundle/bin/github-pages:23:in <main>' /usr/local/lib/ruby/2.7.0/rubygems/dependency.rb:3[11](https://github.com/Xu-Hardy/Xu-Hardy.github.io/actions/runs/3983676628/jobs/6829191084#step:4:12):into_specs': Could not find 'icarus' (>= 0) among 148 total gem(s) (Gem::MissingSpecError) Checked in 'GEM_PATH=/github/home/.gem/ruby/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/local/bundle', execute gem env for more information from /usr/local/lib/ruby/2.7.0/rubygems/dependency.rb:323:in to_spec' from /usr/local/lib/ruby/2.7.0/rubygems/specification.rb:986:infind_by_name' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:82:in gemspec' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:19:inroot' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/theme.rb:12:in initialize' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:439:innew' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:439:in configure_theme' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:55:inconfig=' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/site.rb:23:in initialize' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:30:innew' from /usr/local/bundle/gems/jekyll-3.9.2/lib/jekyll/commands/build.rb:30:in process' from /usr/local/bundle/gems/github-pages-227/bin/github-pages:70:inblock (3 levels) in <top (required)>' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in block in execute' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:ineach' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in execute' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:ingo' from /usr/local/bundle/gems/mercenary-0.3.6/lib/mercenary.rb:19:in program' from /usr/local/bundle/gems/github-pages-[22](https://github.com/Xu-Hardy/Xu-Hardy.github.io/actions/runs/3983676628/jobs/6829191084#step:4:23)7/bin/github-pages:6:in<top (required)>' from /usr/local/bundle/bin/github-pages:23:in load' from /usr/local/bundle/bin/github-pages:23:in

' Logging at level: debug Configuration file: /github/workspace/./_config.yml Theme: icarus github-pages 227 | Error: The icarus theme could not be found.

额外上下文 附上与问题有关的其他上下文信息。