Travis CI build成功, 但是deploy失败
代码在master分支,
要将build出来的dist文件夹部署到gh-pages分支
.travis.yml
language: node_js
node_js: stable
install: npm install
script: npm run build
notifications:
email: false
deploy:
provider: pages
skip_cleanup: true
local-dir: dist
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
on:
branch: gh-pages
错误提示:
DONE Build complete. The dist directory is ready to be deployed.
The command "npm run build" exited with 0.
Skipping a deployment with the pages provider because this branch is not permitted
Done. Your build exited with 0.
似乎我对on
理解有偏差
但是改成以下后还是一样的错
on:
branch: master
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
部署成功了...
是
on: master
没错附一下参考链接:
GitHub Pages Deployment
Conditional Releases with 'on:'