Update maven, produce source jars #149
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test (Maven) | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Build with Maven | |
run: | | |
mkdir -p ~/.m2 | |
printf "<settings><servers><server><id>github</id><username>${{ secrets.ORG_USERNAME }}</username><password>${{ secrets.ORG_TOKEN }}</password></server></servers></settings>" > ~/.m2/settings.xml | |
mvn -B package --file pom.xml |