From eff4bff05106180a6bd2027b8d6e399ced272351 Mon Sep 17 00:00:00 2001 From: Michael Moen Allport Date: Fri, 23 Jan 2026 13:05:40 +0100 Subject: [PATCH] Only deploy SNAPSHOT on branch merge --- .github/workflows/build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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