forked from Bahmni/openmrs-module-appointments
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Bahmni#27 from jecihjoy/module-deploy
Add module deploy workflow to cicd pipeline
- Loading branch information
Showing
2 changed files
with
53 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [ openmrs-3x ] | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters