From 355185c1c38803717f4f897fc3be74c8ac2bb77a Mon Sep 17 00:00:00 2001 From: Anton Micke Date: Fri, 7 Mar 2025 21:23:15 +0100 Subject: [PATCH 1/2] Add GitHub action for Maven package --- .github/maven.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/maven.yml diff --git a/.github/maven.yml b/.github/maven.yml new file mode 100644 index 0000000..a5f19b7 --- /dev/null +++ b/.github/maven.yml @@ -0,0 +1,22 @@ +name : Maven Build + +on: + push: + branches: [ "master", "develop" ] + pull_request: + branches: [ "master", "develop" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: action/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package -Pproduction \ No newline at end of file From f14606d7cbc2f9c491b3ad8f33424a33759019f1 Mon Sep 17 00:00:00 2001 From: Anton Micke Date: Fri, 7 Mar 2025 21:25:33 +0100 Subject: [PATCH 2/2] Add GitHub action for Maven package --- .github/{ => workflows}/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename .github/{ => workflows}/maven.yml (92%) diff --git a/.github/maven.yml b/.github/workflows/maven.yml similarity index 92% rename from .github/maven.yml rename to .github/workflows/maven.yml index a5f19b7..f59eac0 100644 --- a/.github/maven.yml +++ b/.github/workflows/maven.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: action/checkout@v4 + - uses: actions/checkout@v4 - name: Set up JDK 17 uses: actions/setup-java@v4 with: