Commit 0d98cee1 authored by Luke Johnston's avatar Luke Johnston

Merge branch 'use-netlify' into 'master'

Use netlify for website generation

Closes #20

See merge request !9
parents 59336cd1 c220b079
Pipeline #111362132 failed with stages
in 25 seconds
image: rocker/tidyverse
stages:
- build
- deploy
pages:
stage: deploy
build:
stage: build
script:
- R -e "remotes::install_deps(dependencies = T)"
- R -e "remotes::install_deps(dependencies = TRUE)"
- R -e "tinytex::install_tinytex()"
- Rscript _build.R
- R -e "bookdown::render_book('index.Rmd', 'bookdown::gitbook')"
artifacts:
paths:
- public
# - R -e "bookdown::render_book('index.Rmd', 'bookdown::pdf_book')"
# To produce a code coverage report as a GitLab page see
# https://about.gitlab.com/2016/11/03/publish-code-coverage-report-with-gitlab-pages/
deploy:
image: node:latest
stage: deploy
before_script:
- npm i -g netlify-cli
script:
- netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --prod
only:
- master
dependencies:
- build
[build]
publish = "public"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment