Skip to content

Commit 0db0b82

Browse files
authored
Merge pull request #49 from statisticsnorway/deploy-snapshot
Only deploy SNAPSHOT on branch merge
2 parents 62e7bab + eff4bff commit 0db0b82

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ jobs:
3333
service_account: "gh-actions-dapla-pseudo@artifact-registry-5n.iam.gserviceaccount.com"
3434
token_format: access_token
3535

36-
- name: Build with Maven and deploy to Artifact Registry
37-
run: mvn --batch-mode -P ssb-bip deploy
36+
- name: Build and test with Maven
37+
if: github.event_name == 'pull_request'
38+
run: mvn --batch-mode -P ssb-bip clean test
3839

40+
- name: Build with Maven and deploy to Artifact Registry
41+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
42+
run: mvn --batch-mode -P ssb-bip deploy -Dmaven.javadoc.skip=true

0 commit comments

Comments
 (0)