Skip to content

Commit

Permalink
Configure cache directly in actions/setup-java
Browse files Browse the repository at this point in the history
  • Loading branch information
Skaar, Bjørn-Andre committed Nov 13, 2023
1 parent f16b050 commit 159280b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
with:
java-version: 21
distribution: zulu
cache: maven

- name: Authenticate to Google Cloud
id: auth
Expand All @@ -32,13 +33,6 @@ jobs:
service_account: "gh-actions-dapla-pseudo@artifact-registry-5n.iam.gserviceaccount.com"
token_format: access_token

- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Build with Maven and deploy to Artifact Registry
run: mvn --batch-mode -P ssb-bip deploy

0 comments on commit 159280b

Please sign in to comment.