From 2c8dd4a2bc26035df1dbe7926b58215e5aed24c5 Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Wed, 25 Nov 2026 08:36:39 +0100 Subject: [PATCH] Attach site as downloadable artifact for PRs --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fae891a..42fd378 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,6 +27,12 @@ jobs: - name: Expose GitHub Actions runtime for the collector-cache Antora extension uses: crazy-max/ghaction-github-runtime@04d248b84655b509d8c44dc1d6f990c879747487 # v4.0.0 - run: npm run build + - if: github.event_name == 'pull_request' + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: site + path: build/site + if-no-files-found: error - if: github.event_name != 'pull_request' uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 with: