Update maven.yml

This commit is contained in:
Ryder Belserion 2022-06-10 23:42:59 -04:00 committed by GitHub
parent 2b5a7b24bf
commit 23d8e0d808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,9 +11,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
@ -24,3 +22,18 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
publish-job:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: '11'
distribution: 'temurin'
- run: mvn -B package --file pom.xml -DskipTests
- run: mkdir staging && cp target/*.jar staging
- uses: actions/upload-artifact@v1
with:
name: Package
path: staging