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 e20b878
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 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 @@ -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/
Expand All @@ -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/
Expand Down

0 comments on commit e20b878

Please sign in to comment.