Skip to content

Commit

Permalink
Merge branch 'master' into openmrs-2.6.x-upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
makombe committed Mar 21, 2024
2 parents 84a2211 + 5ceb79e commit 95e8d69
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 2 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/maven_deploy_cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and Publish to Nexus

on:
# Manually triggered workflow using the "Run workflow" button
workflow_dispatch:
push:
branches: [ master ]

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
16 changes: 14 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<legacyUiVersion>1.15.0</legacyUiVersion>
<kenyacoreVersion>3.0.0</kenyacoreVersion>
<kenyauiVersion>3.0.0</kenyauiVersion>
<kenyaemrVersion>18.6.0</kenyaemrVersion>
<kenyaemrVersion>18.7.0</kenyaemrVersion>
<jodaTimeVersion>2.9.1</jodaTimeVersion>
<idgenVersion>2.6</idgenVersion>
<jacksonVersion>2.10.1</jacksonVersion>
Expand Down Expand Up @@ -434,5 +434,17 @@
</pluginRepository>
</pluginRepositories>


<distributionManagement>
<repository>
<id>mks-repo</id>
<name>Mekom Solutions Nexus Releases</name>
<url>https://nexus.mekomsolutions.net/repository/maven-releases</url>
</repository>
<snapshotRepository>
<id>mks-repo-snapshots</id>
<name>Mekom Solutions Nexus Snapshots</name>
<url>https://nexus.mekomsolutions.net/repository/maven-snapshots</url>
</snapshotRepository>
</distributionManagement>

</project>

0 comments on commit 95e8d69

Please sign in to comment.