Skip to content

Commit

Permalink
cache Maven repository in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Feb 16, 2024
1 parent 2939dc9 commit 4c0bba3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/publish-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ jobs:
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.6
- name: Cache Maven repository
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('antora-playbook.yml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Generate Site
env:
# must set ANTORA_CACHE_DIR so Maven will put jetty home where Antora Collector won't delete it
Expand Down

0 comments on commit 4c0bba3

Please sign in to comment.