Skip to content

Commit

Permalink
Use cache to share site
Browse files Browse the repository at this point in the history
  • Loading branch information
moisseev committed May 10, 2024
1 parent 2f6f615 commit 29a4478
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 29a4478

Please sign in to comment.