Skip to content

Commit 09d721b

Browse files
committed
build: use shared Maven CI workflow
1 parent 469eb89 commit 09d721b

1 file changed

Lines changed: 5 additions & 33 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,13 @@ name: CI/CD
22

33
on:
44
push:
5-
branches:
6-
- '**'
5+
branches: ['**']
76
pull_request:
87
release:
98
types: [published]
109

1110
jobs:
12-
build:
13-
runs-on: ubuntu-latest
14-
permissions:
15-
contents: write
16-
17-
steps:
18-
- name: Checkout code
19-
uses: actions/checkout@main
20-
21-
- name: Set up JDK 25
22-
uses: actions/setup-java@main
23-
with:
24-
java-version: '25'
25-
distribution: 'temurin'
26-
27-
- name: Build and Test
28-
run: mvn --batch-mode --no-transfer-progress clean verify
29-
30-
- name: Extract Final Artifact Name from POM
31-
if: github.event_name == 'release'
32-
id: pom-info
33-
# help:evaluate safely extracts the exact <finalName> from pom.xml
34-
run: |
35-
FINAL_NAME=$(mvn help:evaluate -Dexpression=project.build.finalName -q -DforceStdout)
36-
echo "jar_name=${FINAL_NAME}" >> "$GITHUB_OUTPUT"
37-
38-
- name: Upload JAR to Release
39-
if: github.event_name == 'release'
40-
uses: softprops/action-gh-release@v2
41-
with:
42-
files: target/${{ steps.pom-info.outputs.jar_name }}.jar
11+
ci:
12+
uses: MLG-Fortress/.github/.github/workflows/maven-ci.yml@master
13+
with:
14+
java-version: '25'

0 commit comments

Comments
 (0)