github: build with JDK 11 and 15 and deploy with JDK 11

This commit is contained in:
Paul Campbell 2020-12-04 15:40:06 +00:00
parent 38af23024a
commit 3cdbcb9f4a
2 changed files with 14 additions and 13 deletions

View file

@ -1,7 +1,4 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
name: maven-build
on:
push:
@ -12,11 +9,15 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 11, 15 ]
steps:
- uses: kamiazya/setup-graphviz@v1
- uses: actions/checkout@v2
- name: Set up JDK 1.8
- name: setup-jdk-${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn -B package --file pom.xml
java-version: ${{ matrix.java }}
- name: build-jar
run: mvn -B install

View file

@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 11
- name: Build with Maven
run: mvn -B package
- name: Nexus Repo Publish