Action changes
This commit is contained in:
parent
dac0afc676
commit
39fa5bb78b
15
.github/workflows/maven.yml
vendored
15
.github/workflows/maven.yml
vendored
@ -4,7 +4,6 @@ on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
@ -12,23 +11,17 @@ jobs:
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user