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