Skip to content

Commit

Permalink
Update pkgdown.yml bug fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
lamonica-d authored Nov 15, 2024
1 parent 3462b98 commit 68e1105
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,29 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write

steps:
- uses: actions/checkout@v4

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

- uses: actions/checkout@master

- 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: Install pandoc
uses: r-lib/actions/setup-pandoc@v2

- name: Install dependencies
run: |
options(pkgType = "binary")
options(install.packages.check.source = "no")
install.packages(c("remotes", "rcmdcheck", "covr", "pkgdown"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}

- name: Install package
run: R CMD INSTALL .

- name: Pkgdown
# Build the package site locally
run: Rscript -e 'pkgdown::build_site()'

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
Expand Down

0 comments on commit 68e1105

Please sign in to comment.