From ffd543bd208d8a6ab17c104800331ef4a634d195 Mon Sep 17 00:00:00 2001 From: Josef Cacek Date: Sat, 3 Aug 2024 14:51:37 +0200 Subject: [PATCH] Continue with GHA updates --- .github/workflows/pr-builder.yaml | 8 ++++---- .github/workflows/upload-release.yaml | 19 +++++-------------- 2 files changed, 9 insertions(+), 18 deletions(-) diff --git a/.github/workflows/pr-builder.yaml b/.github/workflows/pr-builder.yaml index 2919d9b..d61d89f 100644 --- a/.github/workflows/pr-builder.yaml +++ b/.github/workflows/pr-builder.yaml @@ -13,11 +13,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up JDK 8 - uses: actions/setup-java@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: + distribution: 'temurin' # See 'Supported distributions' for available options java-version: '8' - distribution: 'adopt' + cache: 'maven' - name: Build with Maven run: mvn --batch-mode --update-snapshots verify diff --git a/.github/workflows/upload-release.yaml b/.github/workflows/upload-release.yaml index d2fb78a..5e01b5b 100644 --- a/.github/workflows/upload-release.yaml +++ b/.github/workflows/upload-release.yaml @@ -13,23 +13,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Apache Maven Central - uses: actions/setup-java@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: - java-version: 8 - distribution: 'adopt' - - - name: Cache Maven packages - uses: actions/cache@v2 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 - + distribution: 'temurin' # See 'Supported distributions' for available options + java-version: '8' + cache: 'maven' - name: Maven build run: mvn --batch-mode clean install - - name: Upload binaries to release uses: svenstaro/upload-release-action@483c1e56f95e88835747b1c7c60581215016cbf2 with: