File tree Expand file tree Collapse file tree 3 files changed +32
-68
lines changed
Expand file tree Collapse file tree 3 files changed +32
-68
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Publish
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+ release :
9+ types : [published]
10+
11+ jobs :
12+ build :
13+ strategy :
14+ matrix :
15+ java : [ '8', '11']
16+ uses : mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main
17+ uses : actions/setup-java@v2
18+ with :
19+ java-version : ${{ matrix.Java }}
20+ maven-args : " -Pvalidator"
21+ secrets :
22+ NEXUS_USERNAME : ${{ secrets.NEXUS_USERNAME }}
23+ NEXUS_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
24+
25+ publish :
26+ if : ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }}
27+ needs : build
28+ uses : mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main
29+ secrets :
30+ NEXUS_USERNAME : ${{ secrets.NEXUS_USERNAME }}
31+ NEXUS_PASSWORD : ${{ secrets.NEXUS_PASSWORD }}
32+
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments