Travis在gh-pages上部署ember应用程序时出错

时间:2018-01-28 11:25:17

标签: git bash ember.js github-pages

我想在成功的Travis Build之后在gh-pages上部署我的前端制作的前端。但是当Travis运行时,它会产生如下错误:

after_success

$ bash ./script/gh_deploy.sh
cleaning up
cleaning up...
remote: Invalid username or password.
fatal: Authentication failed for 'https://ParthS007:undefined@github.com     /fossasia/badgeyay/'
Error: git push https://ParthS007:undefined@github.com/fossasia/badgeyay          gh-pages exited with nonzero status
Error: git push https://ParthS007:undefined@github.com/fossasia/badgeyay gh-pages exited with nonzero status
 at ChildProcess.<anonymous> (/home/travis/build/fossasia/badgeyay/frontend  /node_modules/ember-cli-deploy-git/lib/run.js:19:19)
 at emitTwo (events.js:106:13)
 at ChildProcess.emit (events.js:191:7)
 at maybeClose (internal/child_process.js:920:16)
 at Process.ChildProcess._handle.onexit (internal/child_process.js:230:5)   Pipeline aborted`

Done. Your build exited with 0.

这是我在gh-pages部署https://github.com/fossasia/badgeyay/pull/529/files的Pull请求中更改过的文件的链接 请建议成功的gh-pages部署应该更改什么。

1 个答案:

答案 0 :(得分:0)

可能重复https://stackoverflow.com/a/28280719/6156142
正如他在下面的答案中所说,你得到了一个漂亮的包,他会为你做这个伎俩

但你的问题似乎来自认证。
您可能需要精确的github登录,因为travis不知道它并且没有权限为您执行此操作。
您可以在Github个人资料settings > Developer settings > Personal access token

中找到您所查找的内容
相关问题