From e20b8786d259cf9b38b8c9d5d32d58c231a7a7c9 Mon Sep 17 00:00:00 2001 From: moisseev Date: Fri, 10 May 2024 17:41:51 +0300 Subject: [PATCH] Use cache to share site --- .github/workflows/main.yml | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 34e94e125..9daa6f5d1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,6 +17,12 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/configure-pages@v5 + - uses: actions/cache@v4 + with: + path: | + _site-root/ + _site/ + key: generated-site-dir - uses: actions/jekyll-build-pages@v1 - run: | mkdir -p _site-root @@ -26,8 +32,13 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - name: Check broken local links - uses: ruzickap/action-my-broken-link-checker@v2 + - uses: actions/cache@v4 + with: + path: | + _site-root/ + _site/ + key: generated-site-dir + - uses: ruzickap/action-my-broken-link-checker@v2 with: url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }} pages_path: ./_site-root/ @@ -44,8 +55,13 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - name: Check broken external links - uses: ruzickap/action-my-broken-link-checker@v2 + - uses: actions/cache@v4 + with: + path: | + _site-root/ + _site/ + key: generated-site-dir + - uses: ruzickap/action-my-broken-link-checker@v2 with: url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }} pages_path: ./_site-root/