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 23072d8 commit f145deb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build and Publish

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
strategy:
matrix:
java: [ '8', '11']
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.Java }}
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 }}
27 changes: 0 additions & 27 deletions .github/workflows/maven.yml

This file was deleted.

0 comments on commit f145deb

Please sign in to comment.