From 81122d252c3f969e7030c3a45a77d7cfe7c215e8 Mon Sep 17 00:00:00 2001 From: Luke Zappia Date: Thu, 21 Nov 2024 14:34:26 +0100 Subject: [PATCH] Upload built site as artifact in pkgdown workflow --- .github/workflows/pkgdown.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index d8e33fa..96daebc 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -57,6 +57,12 @@ jobs: run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) shell: Rscript {0} + - name: Create built site artifact + uses: actions/upload-artifact@v4 + with: + name: pkgdown-site + path: docs + - name: Deploy to GitHub pages 🚀 if: github.event_name != 'pull_request' uses: JamesIves/github-pages-deploy-action@v4