marinebon / p2p

Pole to Pole website
https://marinebon.github.io/p2p
3 stars 1 forks source link

build site upon Rmd changes #23

Closed bbest closed 3 years ago

bbest commented 3 years ago

Since moving to Github Actions with #22, need to build site upon changes to non-site pages (home, events, methods, etc). This is typically done in Travis here .travis.yml#L26 with:

Rscript -e 'rmarkdown::render_site()' > scripts/output_render.log

The eventual trick is to detect if changes are made to site_template.Rmd vs all other Rmd's. For now, should just run this upon any new commit.