updates to github action flow

This commit is contained in:
Nick Minkler 2020-08-02 12:20:04 -07:00 committed by GitHub
parent 9847396d52
commit 12d0749f0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,5 +20,16 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B package --file pom.xml
- run: mvn -B package --file pom.xml
- run: mkdir staging && cp target/*.jar staging
- uses: actions/upload-artifact@v2
with:
name: Package
path: staging