-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (47 loc) · 1.7 KB
/
Copy pathrender.yml
File metadata and controls
49 lines (47 loc) · 1.7 KB
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
on:
push:
branches: main
schedule:
- cron: '0 1 * * *'
name: Render website
jobs:
render:
name: Render README
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- name: Install packages
run: |
Rscript -e 'install.packages("rmarkdown")'
Rscript -e 'install.packages("leaflet")'
Rscript -e 'install.packages("purrr")'
Rscript -e 'install.packages("tibble")'
Rscript -e 'install.packages("kable")'
Rscript -e 'install.packages("tidyverse")'
Rscript -e 'install.packages("plotly")'
Rscript -e 'install.packages("knitr")'
Rscript -e 'install.packages("tidyr")'
Rscript -e 'install.packages("here")'
Rscript -e 'install.packages("openssl")'
Rscript -e 'install.packages("htmltools")'
- name: Render listing
run: Rscript -e 'rmarkdown::render("listing.Rmd")'
- name: Render README
env:
TEST_SECRET: ${{ secrets.TEST_SECRET}}
run: Rscript -e 'rmarkdown::render("README.Rmd")'
- name: Render index
run: Rscript -e 'rmarkdown::render("index.Rmd")'
- name: Render contributeside
env:
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET}}
run: Rscript -e 'rmarkdown::render("contribute.Rmd")'
- name: Commit results
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git add -A .
git commit -m 'Re-build README.Rmd' || echo "No changes to commit"
git push origin || echo "No changes to commit"