diff --git a/.github/workflows/render-dashboard.yml b/.github/workflows/render-dashboard.yml index 0af8bae4c3..2e11887368 100644 --- a/.github/workflows/render-dashboard.yml +++ b/.github/workflows/render-dashboard.yml @@ -32,8 +32,16 @@ jobs: - uses: r-lib/actions/setup-renv@v2 + # Recover latest build so we can reuse cached files (e.g., LICENSE.html). + # The official action is only scoped for artifacts within the same + # workflow. + - uses: dawidd6/action-download-artifact@v3 + with: + name: github-pages + path: ./docs + - name: Build site - run: pkgdown::build_site_github_pages(new_process = FALSE, install = TRUE) + run: pkgdown::build_site(new_process = FALSE, install = TRUE) shell: Rscript {0} - name: Upload artifact