diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d3433a..b1c8d78 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,19 +13,14 @@ jobs: timeout-minutes: 15 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: - java-version: 1.8 - - - name: Cache Maven packages - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2- + java-version: '8' + distribution: 'zulu' + cache: 'maven' - name: Build with Maven run: mvn --batch-mode --update-snapshots clean install @@ -33,7 +28,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: JARs path: target/*.jar