Skip to content

Commit

Permalink
Configure Maven cache in GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
vpaturet committed Oct 22, 2024
1 parent 9cb9d89 commit 68b27a7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,17 @@ jobs:
with:
java-version: 17
distribution: liberica
cache: 'maven'
- run: mvn verify -s .github/workflows/settings.xml
- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
${{ runner.os }}-maven-
${{ runner.os }}-
- name: Run maven build
run: mvn verify -s .github/workflows/settings.xml
- uses: actions/upload-artifact@v4.4.0
with:
path: target/*.jar
Expand Down

0 comments on commit 68b27a7

Please sign in to comment.