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/