Skip to content

OZ-342: Build and Deploy to nexus #1

OZ-342: Build and Deploy to nexus

OZ-342: Build and Deploy to nexus #1

name: Validate and optionally publish (if pushed on main)
on:
pull_request:
branches: [main]
push:
workflow_dispatch:
jobs:
build-and-publish:
uses: mekomsolutions/mekom-github-workflow-maven/.github/workflows/build-publish-workflow.yml@main
with:
webhook-url: https://openmrs-cd.mekomsolutions.net/generic-webhook-trigger/invoke
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
OCD3_USERNAME: ${{ secrets.OCD3_USERNAME }}
OCD3_PASSWORD: ${{ secrets.OCD3_PASSWORD }}
if: ${{ github.ref == 'refs/heads/main' }}