-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 925 Bytes
/
ci.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: CI
on:
push:
branches-ignore:
- dependabot/**
pull_request:
jobs:
build:
name: Maven Build
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17, 21 ]
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
- name: Build with Maven
run: |
mvn --version
mvn --batch-mode --no-transfer-progress package
echo "artifact_name=$(mvn help:evaluate -Dexpression=project.build.finalName -q -DforceStdout)" >> $GITHUB_ENV
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: matrix.java == 17
with:
name: ${{ env.artifact_name }}
path: |
target/*.jar
!target/original-*.jar