Skip to content

render website

render website #106

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: master
schedule:
- cron: '0 0 * * MON'
name: render website
jobs:
render:
name: Rebuild Website
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Install rmarkdown
run: Rscript -e 'install.packages("rmarkdown")'
- name: Install distill
run: Rscript -e 'install.packages("distill")'
- name: Install httr
run: Rscript -e 'install.packages("httr")'
- name: Install jsonlite
run: Rscript -e 'install.packages("jsonlite")'
- name: Install here
run: Rscript -e 'install.packages("here")'
- name: Install mapboxapi
run: Rscript -e 'install.packages("mapboxapi", type = "binary")'
- name: Install tidyverse
run: Rscript -e 'install.packages("tidyverse")'
- name: Install emojifont
run: Rscript -e 'install.packages("emojifont")'
- name: Install DT
run: Rscript -e 'install.packages("DT")'
- name: Install janitor
run: Rscript -e 'install.packages("janitor")'
- name: Install kableExtra
run: Rscript -e 'install.packages("kableExtra")'
- name: Get data from clinicaltrials.gov and rebuild site
env:
MAPBOX: ${{ secrets.MAPBOX }}
run: Rscript R/update_website.R
- name: Render Rmarkdown files and Commit Results
run: |
git add .
git commit -m 'Re-build website' || echo "No changes to commit"
git push origin || echo "No changes to commit"