Code Monkey home page Code Monkey logo

Comments (1)

OHLIA avatar OHLIA commented on August 24, 2024 1

你好,请教一下这个帖子 使用 Travis 自动构建 Hexo 到 GitHub 的相关问题。

我直接复制你项目下的配置文件(去掉 - gulp 这步)和脚本,然后自己绑定了 Access Token,前面都过了,就是最后 hexo deploy 失败,步骤都没错,问题应该还是认证出了问题。

_config.yml 文件,我尝试修改过 repo 地址为 Https类, SSH类,修改 type 为 git 或者 https。都提示失败。

以下 log 是 type git, repo 地址 ssh类型出的结果。

$ hexo deploy
INFO  Deploying: git
INFO  Setting up Git deployment...
Initialized empty Git repository in /home/travis/build/OHLIA/Wiki-site/.deploy_git/.git/

*** Please tell me who you are.

Run

  git config --global user.email "[email protected]"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for <>) not allowed
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
    at ChildProcess.<anonymous> (/home/travis/build/OHLIA/Wiki-site/node_modules/hexo-util/lib/spawn.js:52:19)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
travis_time:end:1016f340:start=1566804459853647012,finish=1566804460828702185,duration=975055173
�[0Ktravis_fold:end:after_success
�[0K
Done. Your build exited with 0.

解决了,是环境变量没填入 travis-ci 里面。

from wiki-site.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.