码迷,mamicode.com
首页 > 其他好文 > 详细

为Github项目添加Travis持续集成服务

时间:2019-10-21 00:18:29      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:搜索   pos   http   deploy   持续集成   github   参考   设置   集成   

参考链接:https://www.jianshu.com/p/3b8d86f25ee2
http://www.ruanyifeng.com/blog/2017/12/travis_ci_tutorial.html

 

以下为个人修改

1. 添加Github Pages(https://docs.travis-ci.com/user/deployment/pages/)搜索gh-pages即可得到该链接

deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN  # Set in the settings page of your repository, as a secure variable
  keep_history: true
  on:
    branch: master

这里的$GITHUB_TOKEN 是在GitHub配置的personal token(设置token链接:https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line

由于这个是私密token,可以采用文档提及的两种方式之一,通过在travis配置环境变量来获取

 

为Github项目添加Travis持续集成服务

标签:搜索   pos   http   deploy   持续集成   github   参考   设置   集成   

原文地址:https://www.cnblogs.com/luguiqing/p/11711018.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!