Skip to content

Commit

Permalink
Merge pull request #10 from eddelbuettel/main
Browse files Browse the repository at this point in the history
Use pkgdown on top of a base layer of r2u for more reliable package installation
  • Loading branch information
robjhyndman authored Dec 21, 2024
2 parents abe9f8b + 6b9107c commit 6b6d5a4
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,27 @@ jobs:

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

#- uses: r-lib/actions/setup-r@v2
# with:
# use-public-rspm: true

#- uses: r-lib/actions/setup-r-dependencies@v2
# with:
# extra-packages: any::pkgdown, local::.
# needs: website

- name: Setup r2u
uses: eddelbuettel/github-actions/r2u-setup@master

- name: Install remotes and pkgdown
run: Rscript -e 'install.packages(c("remotes", "pkgdown"))'

- name: Install all Dependencies
run: Rscript -e 'remotes::install_deps(".", dependencies=TRUE)'

- name: Install package itself
run: R CMD INSTALL .

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}
Expand Down

0 comments on commit 6b6d5a4

Please sign in to comment.