代码拉取完成,页面将自动刷新
language: node_js # 设置语言
node_js: stable # 设置相应版本
cache:
before_install:
- npm install hexo-cli -g
install:
- npm install # 安装hexo及插件
script:
- hexo clean # 清除
- hexo g # 生成
after_script:
- git clone https://${GH_REF} .deploy_git
- cd .deploy_git
- git checkout master
- cd ../
- mv .deploy_git/.git/ ./public/
- cd ./public
- git config user.name "sshwy"
- git config user.email "jy.cat@qq.com"
- git add .
- git commit -m "Travis CI Auto Builder"
- git push --force --quiet "https://${Travis_token}@${GH_REF}" master:master
branches:
only:
- hexo # 只监测hexo分支
env:
global:
- GH_REF: github.com/sshwy/backup.git #设置GH_REF,注意更改成自己的仓库地址
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。