File tree 1 file changed +20
-4
lines changed
1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,27 @@ jobs:
25
25
- uses : r-lib/actions/setup-r-dependencies@v2
26
26
with :
27
27
extra-packages : |
28
+ RandomFields=?ignore
28
29
any::pkgdown
29
30
any::XML
31
+ needs : website
30
32
31
- - name : Deploy package
33
+ - name : Install additional package dependencies
32
34
run : |
33
- git config --local user.name "$GITHUB_ACTOR"
34
- git config --local user.email "[email protected] "
35
- Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
35
+ repos.orig <- getOption('repos')
36
+ options(repos = c(PE = "https://predictiveecology.r-universe.dev")) ## TODO: use ropensci universe
37
+ pak::pkg_install("RandomFields")
38
+ options(repos = repos.orig)
39
+ shell : Rscript {0}
40
+
41
+ - name : Build site
42
+ run : pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
43
+ shell : Rscript {0}
44
+
45
+ - name : Deploy to GitHub pages 🚀
46
+ if : github.event_name != 'pull_request'
47
+
48
+ with :
49
+ clean : false
50
+ branch : gh-pages
51
+ folder : docs
You can’t perform that action at this time.
0 commit comments