Skip to content

Commit b7ac723

Browse files
chore(DVIZ-24): add maven cache in the github actions
1 parent d487fb4 commit b7ac723

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,17 @@ jobs:
2828
java-version: '21'
2929
distribution: 'corretto'
3030
cache: 'maven'
31-
31+
32+
- name: Cache Maven packages
33+
uses: actions/cache@v4
34+
with:
35+
path: |
36+
~/.m2/repository
37+
!~/.m2/repository/org/devgateway/tcdi
38+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
39+
restore-keys: |
40+
${{ runner.os }}-maven-
41+
3242
- name: Configure Git user
3343
run: |
3444
git config user.email "actions@github.com"

0 commit comments

Comments
 (0)