File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
2
push :
3
- branches : master
3
+ branches :
4
+ - master
5
+ - main
6
+ pull_request :
7
+ branches :
8
+ - master
9
+ - main
4
10
5
11
name : pkgdown
6
12
12
18
steps :
13
19
- uses : actions/checkout@v2
14
20
15
- - uses : r-lib/actions/setup-r@master
21
+ - uses : r-lib/actions/setup-r@v1
16
22
17
- - uses : r-lib/actions/setup-pandoc@master
23
+ - uses : r-lib/actions/setup-pandoc@v1
24
+
25
+ - name : System dependencies
26
+ run : brew install harfbuzz fribidi
18
27
19
28
- name : Query dependencies
20
29
run : |
24
33
shell : Rscript {0}
25
34
26
35
- name : Cache R packages
27
- uses : actions/cache@v1
36
+ uses : actions/cache@v2
28
37
with :
29
38
path : ${{ env.R_LIBS_USER }}
30
39
key : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
@@ -36,13 +45,19 @@ jobs:
36
45
remotes::install_github("tidyverse/tidytemplate")
37
46
remotes::install_cran("tidymodels")
38
47
remotes::install_cran("C50")
39
- install.packages("pkgdown")
48
+ install.packages("pkgdown", type = "binary" )
40
49
shell : Rscript {0}
41
50
42
51
- name : Install package
43
52
run : R CMD INSTALL .
44
53
54
+ - name : Build site
55
+ if : github.event_name == 'pull_request'
56
+ run : |
57
+ Rscript -e 'pkgdown::build_site()'
58
+
45
59
- name : Deploy package
60
+ if : github.event_name == 'push'
46
61
run : |
47
62
git config --local user.email "[email protected] "
48
63
git config --local user.name "GitHub Actions"
You can’t perform that action at this time.
0 commit comments