diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 34e94e125..e75590ce8 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 @@ -27,6 +33,12 @@ jobs: needs: build steps: - name: Check broken local links + 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 }} @@ -45,6 +57,12 @@ jobs: needs: build steps: - name: Check broken external links + 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 }}