Fix java cache

This commit is contained in:
Andrea Cavalli 2022-11-14 12:52:42 +01:00
parent 7301683d24
commit 5fba011eee
2 changed files with 4 additions and 4 deletions

View File

@ -136,17 +136,19 @@ jobs:
- name: Setup Java (Snapshot)
if: github.ref == 'refs/heads/develop'
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
server-id: mchv-snapshot-distribution
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Setup Java (Release)
if: github.ref == 'refs/heads/master'
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11
distribution: temurin
server-id: mchv-release-distribution
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD

View File

@ -33,7 +33,6 @@ jobs:
with:
java-version: 17
distribution: temurin
cache: maven
server-id: mchv-snapshot-distribution
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
@ -43,7 +42,6 @@ jobs:
with:
java-version: 17
distribution: temurin
cache: maven
server-id: mchv-release-distribution
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD