forked from GriefPrevention/GriefPrevention
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 958 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
40
41
name: CI
on:
push:
branches-ignore:
- dependabot/**
pull_request:
jobs:
test:
name: "Test on JDK ${{ matrix.java }}"
runs-on: ubuntu-24.04
strategy:
matrix:
java: [ 21, 22 ]
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Set up JDK ${{ matrix.java }}"
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: maven
- name: "Build with Maven"
run: |
./mvnw --version
./mvnw --batch-mode package
echo "artifactName=$(./mvnw help:evaluate -Dexpression=project.build.finalName -q -DforceStdout)" >> $GITHUB_ENV
- name: "Upload Artifacts"
uses: actions/upload-artifact@v4
if: matrix.java == 21
with:
name: ${{ env.artifactName }}
path: |
target/*.jar
!target/original-*.jar