From 9add9b15999d21b5e68a9962588d6cc62300a486 Mon Sep 17 00:00:00 2001 From: Sylvain Jermini Date: Tue, 27 Feb 2024 19:14:39 +0100 Subject: [PATCH] update workflow --- .github/workflows/maven.yml | 7 ++++--- .github/workflows/release.yml | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 6b88727..72df599 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -18,15 +18,16 @@ jobs: java: ['11', '17', '21'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK ${{matrix.java}} - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: ${{matrix.java}} + distribution: corretto - name: Maven -v run: ./mvnw -v - name: Cache Maven packages - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abc17b0..84de88c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,12 +9,12 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '11' - distribution: 'adopt' + distribution: 'corretto' - name: Publish package env: JRELEASER_NEXUS2_USERNAME: ${{ secrets.JRELEASER_NEXUS2_USERNAME }}