Skip to content

Maven Build

Maven Build #71

Workflow file for this run

name: Maven Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [ 11 ]
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- name: Set up java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: ${{ matrix.java-version }}
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B package --no-transfer-progress --file pom.xml
env:
TWIKEY_API_KEY: ${{ secrets.TWIKEY_API_KEY }}
CT: ${{ secrets.CT }}
MNDTNUMBER: ${{ secrets.MNDTNUMBER }}