Skip to content

Commit

Permalink
OZ-689 - Added github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wluyima committed Sep 6, 2024
1 parent 3651646 commit 56c3f2f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI

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

jobs:
validate:
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main
with:
java-version: 8
use-secrets: true
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: spotless
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

0 comments on commit 56c3f2f

Please sign in to comment.