Skip to content

Commit c0b2479

Browse files
committed
chore: add caching for build artifacts
1 parent fb86d40 commit c0b2479

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14+
- name: Cache local Maven repository
15+
uses: actions/cache@v4
16+
with:
17+
path: ~/.m2/repository
18+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
19+
restore-keys: |
20+
${{ runner.os }}-maven-
1421
- name: Set up Java
1522
uses: actions/setup-java@v4
1623
with:

.github/workflows/deploy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ jobs:
1313
packages: write
1414
steps:
1515
- uses: actions/checkout@v4
16+
- name: Cache local Maven repository
17+
uses: actions/cache@v4
18+
with:
19+
path: ~/.m2/repository
20+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
21+
restore-keys: |
22+
${{ runner.os }}-maven-
1623
- name: Set up Java
1724
uses: actions/setup-java@v4
1825
with:

0 commit comments

Comments
 (0)