From 9ebbebda90df9dbfee86e46e181a6c3635e60382 Mon Sep 17 00:00:00 2001 From: Eduard Kuksa Date: Sun, 12 Jan 2025 12:23:18 +0700 Subject: [PATCH] change jdk version and add maven in action --- .gitea/workflows/maven.yaml | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/maven.yaml b/.gitea/workflows/maven.yaml index d67cdac..f4ce27e 100644 --- a/.gitea/workflows/maven.yaml +++ b/.gitea/workflows/maven.yaml @@ -1,20 +1,24 @@ name: Gitea Actions Maven Build on: - push: - branches: ['master'] + push: + branches: ['master'] jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout the repo - uses: actions/checkout@v4 - - name: Setup JDK 21 - uses: actions/setup-java@v4 - with: - java-version: 21 - distribution: 'temurin' - cache: maven - - name: Build with Maven - run: mvn -B package --file pom.xml \ No newline at end of file + build: + runs-on: ubuntu-latest + steps: + - name: Checkout the repo + uses: actions/checkout@v4 + - name: Set up Maven + uses: stCarolas/setup-maven@v5 + with: + maven-version: '3.8.2' + - name: Set up JDK 23 + uses: actions/setup-java@v4 + with: + java-version: 23 + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml \ No newline at end of file