Sorry if this is a vague question as I am new to GitLab…
I simply have a project producing Gitlab pages rendered by RMarkdown. It downloads data updating every day so I need it to re-build the site every day (And the code will download the latest source data).
Is this something easy to do in GitLab / relevant to CI/CD?
.gitlab-ci.yml:
image: debian:buster-slim
before_script:
- apt-get update
- apt-get -y install pandoc r-base
- R -e "install.packages('blogdown', repos='https://cran.rstudio.com/')"
- R -e "blogdown::install_hugo()"
pages:
script:
- R -e "blogdown::build_site()"
artifacts:
paths:
- public
only:
- master
Any advice is very much appreciated.