From a79f31f6abd8a547eb3c736d321504297616d93f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berke=20Ak=C3=A7en?= Date: Sat, 21 Sep 2024 13:36:06 +0300 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ad0e5f0..d019173 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,26 +1,23 @@ -name: Build +name: Java CI with Maven on: push: - branches: [main] + branches: [ "main" ] pull_request: - branches: [main] + branches: [ "main" ] jobs: build: + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up JDK 17 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: - java-version: 17 + java-version: '17' + distribution: 'temurin' + cache: maven - name: Build with Maven - run: mvn -B package --file pom.xml - - name: Upload artifact - uses: actions/upload-artifact@v3 - with: - name: CommandFramework - path: target/** - if: "!contains(github.event.head_commit.message, 'README')" + run: mvn -B package --file pom.xml \ No newline at end of file