2020-08-02 21:04:01 +02:00
|
|
|
# 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
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up JDK 1.8
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
2020-08-02 21:20:04 +02:00
|
|
|
- name: Cache Maven packages
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/.m2
|
|
|
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
|
|
|
restore-keys: ${{ runner.os }}-m2
|
2020-08-02 21:46:19 +02:00
|
|
|
- name: Build Release
|
2020-08-02 21:30:38 +02:00
|
|
|
run: mvn -B package --file pom.xml
|
2020-08-02 21:46:19 +02:00
|
|
|
- name: Build javadoc
|
|
|
|
run: mvn -B javadoc:javadoc javadoc:jar --file pom.xml
|
2020-08-02 21:31:56 +02:00
|
|
|
- name: Stage the artifact
|
2020-08-02 21:30:38 +02:00
|
|
|
run: mkdir staging && cp target/*.jar staging
|
2020-08-02 21:31:56 +02:00
|
|
|
- uses: actions/upload-artifact@v2
|
2020-08-02 21:20:04 +02:00
|
|
|
with:
|
2020-08-02 21:46:19 +02:00
|
|
|
name: VaultAPI
|
2020-08-02 21:20:04 +02:00
|
|
|
path: staging
|