-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (53 loc) · 1.65 KB
/
Copy pathbuild.yaml
File metadata and controls
55 lines (53 loc) · 1.65 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
50
51
52
53
54
55
on:
schedule:
- cron: "0 12 * * *"
workflow_dispatch:
name: build
jobs:
render:
name: build
runs-on: ubuntu-22.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
with:
extra-repositories: 'https://tbep-tech.r-universe.dev'
- uses: r-lib/actions/setup-pandoc@v2
- name: Setup Ubuntu dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libudunits2-dev \
libgdal-dev \
libgeos-dev \
libproj-dev \
libsqlite3-dev
- name: Setup R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: "devel"
packages: |
any::googlesheets4
any::tm
any::dplyr
any::wordcloud
any::RColorBrewer
any::rmarkdown
tbeptools
- name: Render README
run: Rscript -e 'rmarkdown::render("README.Rmd")'
- name: Render all index
run: Rscript -e 'rmarkdown::render("allindex.Rmd")'
- name: Render technical index
run: Rscript -e 'rmarkdown::render("techindex.Rmd")'
- name: Render education index
run: Rscript -e 'rmarkdown::render("eduindex.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 and index' || echo "No changes to commit"
git push origin || echo "No changes to commit"