From 39fa5bb78b87fb5246f8e4bd1a0083d73dcb5d8b Mon Sep 17 00:00:00 2001 From: 4drian3d Date: Sun, 5 Sep 2021 16:29:50 -0500 Subject: [PATCH] Action changes --- .github/workflows/maven.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index a7aeccf..3b66e79 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -4,33 +4,26 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v2 - + - name: Set up JDK 16 - uses: actions/setup-java@v2 + uses: actions/setup-java@v2.3.0 with: java-version: 16 - distribution: 'adopt' - - - name: Cache Maven packages - uses: actions/cache@v2.1.6 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 + distribution: 'temurin' + cache: 'maven' - name: Build with Maven uses: nick-invision/retry@v2 with: timeout_minutes: 5 - max_attempts: 3 + max_attempts: 2 command: mvn -B package --file pom.xml - + - name: Upload artifact uses: actions/upload-artifact@v2.2.4 with: