diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a85b3b1..7b3f3e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,25 +1,22 @@ -name: Build +name: Java CI on: push: - branches: [master] + branches: ["master"] pull_request: - branches: [master] - + branches: ["master"] + jobs: build: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK 17 - uses: actions/setup-java@v1 + 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@v2 - with: - name: KOTL - path: target/** - if: "!contains(github.event.head_commit.message, 'README')" + run: mvn -B package --file pom.xml \ No newline at end of file