-
Notifications
You must be signed in to change notification settings - Fork 17
39 lines (29 loc) · 1.01 KB
/
maven.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
33
34
35
36
37
38
39
name: Java CI with Maven
on: [push, pull_request]
env:
SONATYPE_LIFECYCLE_APPLICATION_ID : ${{ github.head_ref || github.ref_name }}
# SONATYPE_LIFECYCLE_APPLICATION_ID: $(echo "${{ github.repository }}" | cut -d '/' -f2)
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Benchmark java
uses: actions/checkout@master
with:
repository: OWASP-Benchmark/BenchmarkJava
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'zulu'
- name: Create WAR
run: mvn clean package
- name: Sonatype Lifecycle Policy Evaluation
uses: sonatype-nexus-community/iq-github-action@v2
with:
serverUrl: ${{ secrets.SONATYPE_LIFECYCLE_URL }}
username: ${{ secrets.SONATYPE_LIFECYCLE_USERNAME }}
password: ${{ secrets.SONATYPE_LIFECYCLE_PASSWORD }}
applicationId: ${{ env.SONATYPE_LIFECYCLE_APPLICATION_ID }}
stage: Build
target: ./target/