From da2d190d69995fec75f4f458a88dc70676f24d8b Mon Sep 17 00:00:00 2001 From: Dmitry Shemetov Date: Wed, 24 Apr 2024 17:31:52 -0700 Subject: [PATCH] ci: remove pkgdown.yaml workaround * David's fix was merged and released in pkgdown --- .github/workflows/pkgdown.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index 886055ae..9b5ac1cb 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -47,8 +47,6 @@ jobs: # - mode: release is the standard build mode, devel places the site in /dev # - version_label: 'light' and 'success' are CSS labels for Bootswatch: Cosmo # https://bootswatch.com/cosmo/ - # - we use pkgdown:::build_github_pages to build the site because of an issue in pkgdown - # https://github.com/r-lib/pkgdown/issues/2257 run: | target_ref <- "${{ github.event_name == 'pull_request' && github.base_ref || github.ref }}" override <- if (target_ref == "main" || target_ref == "refs/heads/main") { @@ -58,11 +56,7 @@ jobs: } else { stop("Unexpected target_ref: ", target_ref) } - pkg <- pkgdown::as_pkgdown(".", override = override) - cli::cli_rule("Cleaning files from old site...") - pkgdown::clean_site(pkg) - pkgdown::build_site(pkg, preview = FALSE, install = FALSE, new_process = FALSE) - pkgdown:::build_github_pages(pkg) + pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE, override=override) shell: Rscript {0} - name: Deploy to GitHub pages 🚀