Skip to content

Commit 29d9708

Browse files
authored
Merge pull request #106 from ropensci/update-ghactions
Hopefully fix pkgdown github action
2 parents e14ad90 + c7aa066 commit 29d9708

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

.github/workflows/Deploy-pkgdown.yaml

+20-4
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,27 @@ jobs:
2525
- uses: r-lib/actions/setup-r-dependencies@v2
2626
with:
2727
extra-packages: |
28+
RandomFields=?ignore
2829
any::pkgdown
2930
any::XML
31+
needs: website
3032

31-
- name: Deploy package
33+
- name: Install additional package dependencies
3234
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+
uses: JamesIves/[email protected]
48+
with:
49+
clean: false
50+
branch: gh-pages
51+
folder: docs

0 commit comments

Comments
 (0)