github travis ci 自动部署
1. ci 能干嘛
2. 配置示例
language: node_js
node_js:
- 10
cache:
directories:
- "node_modules"
install:
- npm i
script:
- npm run build
after_success:
- cd .docz/dist
- git init
- git config --global user.name "${U_NAME}"
- git config --global user.email "${U_EMAIL}"
- git add -A
- git commit -m 'deploy'
- git push --quiet --force "https://${GH_TOKEN}@${GH_REF}" master:${P_BRANCH}
branches:
except:
- master
branches:
only:
- gh-pages3. 遇到的问题
3.1 travis.org 与 travis.com的区别
3.2 报错 GitHub Pages branch not include ...
4. 参考资料
Last updated