Commit 46937d2e authored by Luke Johnston's avatar Luke Johnston

Use netlify for website. Resolves #20

parent e5ae9378
image: rocker/tidyverse
stages:
- build
- deploy
pages:
stage: deploy
build:
stage: build
script:
- R -e "remotes::install_deps(dependencies = T)"
- Rscript _build.R
- R -e "remotes::install_deps(dependencies = TRUE)"
- 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