Update maven.yml

pull/7/head
Caroline Bell 2020-02-25 13:44:05 -08:00 committed by GitHub
parent b51274b5c2
commit 0d96ecfca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 3 deletions

View File

@ -1,16 +1,23 @@
name: Maven Test
name: Test Build
on: [push, pull_request]
jobs:
build:
runs-on: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1.3.0
uses: actions/setup-java@v1
with:
java-version: 11
java-version: '>=11.0'
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy
env:
GITHUB_TOKEN: ${{ github.token }}