From dd29a4792134f32b0149e10ab2084f5ef6ede49a Mon Sep 17 00:00:00 2001 From: dipterix Date: Thu, 25 Apr 2024 23:40:00 -0400 Subject: [PATCH] Updated pkgdown workflow --- .github/workflows/pkgdown.yaml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index dbade2b..a7276e8 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -22,7 +22,7 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: r-lib/actions/setup-pandoc@v2 @@ -36,25 +36,12 @@ jobs: needs: website - name: Build site - run: | - # pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) - ns <- asNamespace("pkgdown") - env <- new.env(parent = ns) - for(nm in names(ns)) { - if(is.function(ns[[nm]]) && !inherits(ns[[nm]], "memoised")) { - f <- ns[[nm]] - environment(f) <- env - env[[nm]] <- f - } - } - env$build_tutorials <- function(...){} - env$find_tutorials <- function(...){ return(character()) } - env$build_site(new_process = FALSE, install = FALSE, pkg = ".") + run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) shell: Rscript {0} - name: Deploy to GitHub pages 🚀 if: github.event_name != 'pull_request' - uses: JamesIves/github-pages-deploy-action@v4.4.1 + uses: JamesIves/github-pages-deploy-action@v4.5.0 with: clean: false branch: gh-pages