From ce4ec0d136b6782e24235ab75c9514570de3fba3 Mon Sep 17 00:00:00 2001 From: Peter Krusche Date: Wed, 6 Mar 2024 17:30:40 +0100 Subject: [PATCH] bookdown build workaround --- .Rprofile | 4 ++++ .github/workflows/build-documentation.yml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.Rprofile b/.Rprofile index 81b960f..842c02d 100644 --- a/.Rprofile +++ b/.Rprofile @@ -1 +1,5 @@ source("renv/activate.R") + +if (Sys.getenv("LOAD_MONITOS_PACKAGE") == "true") { + devtools::load_all(".") +} diff --git a/.github/workflows/build-documentation.yml b/.github/workflows/build-documentation.yml index 7457ca4..2e397ba 100644 --- a/.github/workflows/build-documentation.yml +++ b/.github/workflows/build-documentation.yml @@ -26,8 +26,8 @@ jobs: extra-packages: pkgdown needs: website - - name: Deploy package + - name: Deploy documentation run: | git config --local user.name "$GITHUB_ACTOR" git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com" - Rscript -e "pkgdown::deploy_to_branch(new_process = FALSE, subdir = '$(git describe --abbrev=0 --tags)')" \ No newline at end of file + LOAD_MONITOS_PACKAGE=true Rscript -e "pkgdown::deploy_to_branch(new_process = FALSE, subdir = '$(git describe --abbrev=0 --tags)')" \ No newline at end of file