Skip to content

Merge pull request #1960 from patryllus/feat/IDSR-flags-pr-feedback #121

Merge pull request #1960 from patryllus/feat/IDSR-flags-pr-feedback

Merge pull request #1960 from patryllus/feat/IDSR-flags-pr-feedback #121

name: Build and Publish to Nexus
on:
# Manually triggered workflow using the "Run workflow" button
workflow_dispatch:
push:
branches: [ master,openmrs-2.6.x-upgrade ]
jobs:
publish:
runs-on: ubuntu-latest
#set up the build enviroment
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
- name: Build with Maven
run: mvn -B package -DskipTests
- name: Set settings.xml
uses: s4u/[email protected]
with:
servers: |
[{
"id": "mks-repo",
"username": "${{ secrets.MAVEN_USERNAME }}",
"password": "${{ secrets.MAVEN_TOKEN }}"
},
{
"id": "mks-repo-snapshots",
"username": "${{ secrets.MAVEN_USERNAME }}",
"password": "${{ secrets.MAVEN_TOKEN }}"
}]
- name: Publish
run: mvn --batch-mode clean deploy -DskipTests