Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs dir conflicts from travis #4

Open
7yl4r opened this issue Nov 30, 2018 · 0 comments
Open

docs dir conflicts from travis #4

7yl4r opened this issue Nov 30, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@7yl4r
Copy link
Member

7yl4r commented Nov 30, 2018

Reported by @eqmh : Because travis pushes on the master branch sometimes you can get unexpected merge conflicts. This article describes the problem well (although I disagree with the conclusion).

marinebon/condition-reports force-pushes over a gh-pages branch, but that requires some weird build steps rather than nicely building into ./docs. I would like a better option, but I don't have any examples.

Best way might be to use the actual travis.yml deployment instead of the manual git commands. I think that would look something like:

deploy:
  local-dir: ./docs
  provider: pages
  skip-cleanup: true
  github-token: $GH_TOKEN
  target-branch: gh-pages
  on:
    branch: master

after doing this is would also make sense to add ./docs to the .gitignore

@7yl4r 7yl4r added the enhancement New feature or request label Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant