Skip to content

Commit

Permalink
Updated pkgdown workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dipterix committed Apr 26, 2024
1 parent f8cba84 commit dd29a47
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

Expand All @@ -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
Expand Down

0 comments on commit dd29a47

Please sign in to comment.