-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (29 loc) · 968 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Build with parameters
on:
workflow_dispatch:
inputs:
branch:
description: "The branch to build a SNAPSHOT from."
required: true
default: "main"
jobs:
deploy:
name: Build SNAPSHOT
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch }}
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'
java-package: jdk
# this creates a settings.xml with the following server
settings-path: ${{ github.workspace }}
- name: Run Maven Targets
run: mvn install jacoco:report checkstyle:checkstyle javadoc:javadoc spotbugs:spotbugs --settings $GITHUB_WORKSPACE/settings.xml --batch-mode --show-version --no-transfer-progress
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}