-
Notifications
You must be signed in to change notification settings - Fork 31
50 lines (42 loc) · 1.39 KB
/
makedocs.yml
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
on:
push:
branches:
- main
name: pkgdown
jobs:
pkgdown:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: "0"
- uses: r-lib/actions/setup-r@master
with:
r-version: 'release'
- uses: r-lib/actions/setup-pandoc@master
- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}
- name: Install dependencies
run: |
install.packages("devtools")
install.packages("remotes")
install.packages("pkgdown")
install.packages("vdiffr")
install.packages("textshaping", type = "binary")
remotes::install_github("lorenzwalthert/gitsum")
remotes::install_github("pharmaR/riskmetric")
install.packages("ggthemes")
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Install package
run: R CMD INSTALL .
- name: Deploy package
run: |
Rscript -e 'rmarkdown::render("README.rmd")'
Rscript -e 'devtools::document()'
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'