From c0e39a6a99971da02b4bfd93164859441c21cce9 Mon Sep 17 00:00:00 2001 From: Gabriel Becker Date: Fri, 19 May 2023 12:48:36 +0200 Subject: [PATCH] Upload artifacts in case the event is a pull request. Store the built content that can be inspected locally to check if the built pages are correct. --- .github/workflows/gh-pages.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index 45cdf4038e48..f3b66fe1760e 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -51,3 +51,9 @@ jobs: token: ${{ secrets.CONTENT_PAGES_TOKEN }} git-config-name: openscap-ci git-config-email: openscap-ci@gmail.com + - name: Upload artifact if the event is pull request + uses: actions/upload-artifact@v3 + if: ${{ github.event_name == 'pull_request' }} + with: + name: built-content + path: ${{ env.PAGES_DIR }}