Skip to content

Commit

Permalink
INFRA-411: Use shared GA workflows to build and publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaud committed Sep 25, 2024
1 parent 7b1b14c commit 5873305
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 68 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Publish

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
release:
types: [published]

jobs:
build:
strategy:
matrix:
java: [ '8', '11']
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main
with:
java-version: ${{ matrix.Java }}
maven-args: "-Pvalidator"
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

publish:
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' }}
needs: build
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

41 changes: 0 additions & 41 deletions .github/workflows/build-test-publish.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/build-test.yml

This file was deleted.

0 comments on commit 5873305

Please sign in to comment.