-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.77 KB
/
render-rmarkdown.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# 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"