From 68e11059ce7582ed85e28f6d97d85cbcabfd0f52 Mon Sep 17 00:00:00 2001 From: lamonica-d <104020730+lamonica-d@users.noreply.github.com> Date: Fri, 15 Nov 2024 10:53:39 +0100 Subject: [PATCH] Update pkgdown.yml bug fix attempt --- .github/workflows/pkgdown.yml | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pkgdown.yml b/.github/workflows/pkgdown.yml index 57aba39..8194bff 100644 --- a/.github/workflows/pkgdown.yml +++ b/.github/workflows/pkgdown.yml @@ -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)