rformassspectrometry / metaRbolomics-book

The MetaRbolomics book. A review of R packages in BioC, CRAN, gitlab and github.
https://rformassspectrometry.github.io/metaRbolomics-book/
Creative Commons Attribution 4.0 International
33 stars 10 forks source link

deploy error File exists @ dir_s_mkdir #1

Closed stanstrup closed 5 years ago

stanstrup commented 5 years ago

Looks like there is a bug in dpl that makes deploy fail if there is no gh-pages branch: https://travis-ci.community/t/file-exists-dir-s-mkdir-ruby-exception-when-the-deploy-branch-doesnt-exist/1143

I have create an empty branch and is retesting.

lgatto commented 5 years ago

But you also build into a public directory that doesn't exists. Is it going to be created automatically?

My default pipeline is to build in docs in the master branch (and set accordingly in the repo settings) which works like a charm.

stanstrup commented 5 years ago

Yes public is created by bookdown. I wanted to avoid committing output files in the repo. I find this much cleaner and convenient. I don't have to wait to compile to push small changes.

Anyway. It seems the workaround works. I wasn't aware that the travis deploy pages would push to the (gh-pages branch of the) repo but apparently that is how it works. And a bug prevented that if the branch wasn't already there.

So with this fix the book builds and everything seems to work perfectly. @sneumann