Skip to content

Commit f35d649

Browse files
committed
INFRA-411: Use shared GA workflows to build and publish.
1 parent 7b1b14c commit f35d649

File tree

3 files changed

+32
-68
lines changed

3 files changed

+32
-68
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+

.github/workflows/build-test-publish.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/build-test.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)