【问题标题】:Travis CI - doesn't deploy build folder?Travis CI - 不部署构建文件夹?
【发布时间】:2018-12-31 12:43:04
【问题描述】:

我正在尝试使用 Travis CI 部署到 GitHub 页面,但 build 文件夹未在分支上提交。这似乎可以通过添加skip_cleanup: true 来解决(我也尝试过skip-cleanup: true,但它仍然没有部署构建文件夹。

这是我的.travis.yml。关于可能导致此问题的任何想法?

language: node_js
node_js:
  - 10
cache:
  directories:
    - node_modules
script:
  - npm run build
  - npm test
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

【问题讨论】:

    标签: continuous-integration travis-ci


    【解决方案1】:

    解决方案是我需要将构建文件夹添加到我的.gitignore,以便 Travis 能够提交文件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-09-04
      • 2016-07-21
      • 1970-01-01
      • 1970-01-01
      • 2019-12-28
      • 2018-04-14
      • 1970-01-01
      • 2020-07-01
      相关资源
      最近更新 更多