diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index cea4e7e..2c87540 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -11,6 +11,8 @@ name: Java CI with Maven on: pull_request: branches: [ "main" ] + push: + branches: [ "main" ] jobs: build: @@ -26,7 +28,7 @@ jobs: distribution: 'temurin' cache: maven - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn clean install -B package --file pom.xml # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - name: Update dependency graph