diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 119ea04..2b7a99d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,10 @@ jobs: service_account: "gh-actions-dapla-pseudo@artifact-registry-5n.iam.gserviceaccount.com" token_format: access_token - - name: Build with Maven and deploy to Artifact Registry - run: mvn --batch-mode -P ssb-bip deploy + - name: Build and test with Maven + if: github.event_name == 'pull_request' + run: mvn --batch-mode -P ssb-bip clean test + - name: Build with Maven and deploy to Artifact Registry + if: github.event_name == 'push' && github.ref == 'refs/heads/master' + run: mvn --batch-mode -P ssb-bip deploy -Dmaven.javadoc.skip=true