https://github.com/apreshill/badbook
https://github.com/apreshill/badbook
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/apreshill/badbook
- Owner: apreshill
- Created: 2019-01-31T20:23:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-01T15:23:37.000Z (over 7 years ago)
- Last Synced: 2025-01-16T01:43:12.543Z (over 1 year ago)
- Language: TeX
- Homepage: https://suspicious-saha-9e4bcc.netlify.com/
- Size: 15.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.com/apreshill/badbook) [](https://app.netlify.com/sites/suspicious-saha-9e4bcc/deploys)
This is a minimal example of a book based on R Markdown and **bookdown** (https://github.com/rstudio/bookdown). Please see the page "Get Started" at https://bookdown.org/ for how to compile this example.
Here's how I deployed this bad boy:
1. wrote my book in a new project cloned from GitHub (`bookdown:::bookdown_skeleton(getwd())`)
1. committed and pushed README (critical for netlify connection- cannot be empty repo)
1. made `.travis.yml` (can't use usethis b/c adds a `.RBuildIgnore`)
1. made `DESCRIPTION` (can't use usethis b/c not relevant fields)
1. update `.gitignore` (used usethis)
1. from netlify, got token
1. on travis, stored netlify token as an env variable
1. back to netlify, new site from git, connect it, left all defaults to deploy from master
1. copied netlify site `API ID`, and pasted back into my `.travis.yml` as env `NETLIFY_SITE_ID`
--> push to GitHub, this should deploy to Netlify
+ Check- this happened!
--> then I will make a small change and push to GitHub again and the site should GO DOWN while Travis builds the book.
+ Check- this happened!
--> The future is now! Now I will trigger a new build, make the site go down again, BUT add a secret line with `after_success` to lock deploys **after** this build.
+ Check- site went down (again)
--> Now for the real test- I will trigger another new build- will the site go down???
nope it went down again ;(
--> In netlify ui, I stopped auto publishing (https://www.laroberto.com/publishing-in-netlify-via-travisci/)
--> don't really think any of this is working now