-
Notifications
You must be signed in to change notification settings - Fork 90
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
Travis CI + Netlify workflow #1
Comments
Another option from @ismayc:
https://github.com/moderndive/moderndive_book/blob/master/.travis.yml |
Thanks for writing this up! I used your directions to get a deploy of I'm not sure if this approach is preferred over repeated invocations of Either way, I thought others like me who come to this issue seeking guidance may benefit from what I've learned about PDF and EPUB building today. Thanks again and apologies if the above information is redundant for you! |
@ismayc work setting up GitHub + Travis CI + Netlify integration has been total cash money. Being able to fix typos in the source Also @apreshill, I'm sure you're already 76 steps ahead of me, but people would ❤️a tutorial on integrating bookdown + Travis CI that's in a similar vein as your Up and running with blogdown tutorial! I loved it, my advanced students loved it, everyone loved it! Dunno if you have the bandwidth to write one up, but I'm sure it would equally sell like 🔥🍰! |
Huzzah this worked! new
|
I've reworked this with manual deploys and using renv to manage the package library. Closing (current state is 11a618f). |
Still not entirely sure what worked and what did not, but these are my breadcrumbs for next time...
Make a new Netlify site from GitHub repo via browser
If first time doing this at all, locally install Netlify CLI via terminal
From Jenny's notes: "This produced
.netlify/state.json
, which holds the (non-secret) site id. Apparently this can also be provided via a travis env var namedNETLIFY_SITE_ID
(ok to reveal in the log)."What did not work was: (a) setting the netlify site link with a text file called
.netlify
; or (b) using the"path":"_book"
in that file either (conclude that you should use the.travis.yml
below to set the--dir _book
instead).Obtain a Token in the Netlify UI
In Travis:
NETLIFY_AUTH_TOKEN
environment variable.Following Sean Kross' instructions for adding Travis to a bookdown
.Rbuildignore
DESCRIPTION
.travis.yml
:Modify
.gitignore
to include:_book
(unless you had changed the bookdown defaultoutput_dir
to something else)_bookdown_files
add, commit, and push these files.
Lots of help from @jennybc's notes:
rstats-wtf/what-they-forgot#25
And from here:
rstudio/bookdown#459
And here:
dgrtwo/tidy-text-mining#42
The text was updated successfully, but these errors were encountered: