File tree Expand file tree Collapse file tree 2 files changed +53
-8
lines changed
Expand file tree Collapse file tree 2 files changed +53
-8
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Publish to Nexus
2+
3+ on :
4+ # Manually triggered workflow using the "Run workflow" button
5+ workflow_dispatch :
6+ push :
7+ branches : [ openmrs-3x ]
8+
9+ jobs :
10+ publish :
11+ runs-on : ubuntu-latest
12+
13+ # set up the build enviroment
14+ steps :
15+ - name : Checkout Repository
16+ uses : actions/checkout@v4
17+
18+ - name : Set up JDK 8
19+ uses : actions/setup-java@v4
20+ with :
21+ distribution : ' temurin'
22+ java-version : ' 8'
23+
24+ - name : Build with Maven
25+ run : mvn -B package -DskipTests
26+
27+ - name : Set settings.xml
28+ uses : s4u/maven-settings-action@v3.0.0
29+ with :
30+ servers : |
31+ [{
32+ "id": "mks-repo",
33+ "username": "${{ secrets.MAVEN_USERNAME }}",
34+ "password": "${{ secrets.MAVEN_TOKEN }}"
35+ },
36+ {
37+ "id": "mks-repo-snapshots",
38+ "username": "${{ secrets.MAVEN_USERNAME }}",
39+ "password": "${{ secrets.MAVEN_TOKEN }}"
40+ }]
41+
42+ - name : Publish
43+ run : mvn --batch-mode clean deploy -DskipTests
Original file line number Diff line number Diff line change 296296 </pluginRepositories >
297297
298298 <distributionManagement >
299- <snapshotRepository >
300- <id >nexus-sonatype</id >
301- <url >https://oss.sonatype.org/content/repositories/snapshots</url >
302- </snapshotRepository >
303- <repository >
304- <id >nexus-sonatype</id >
305- <url >https://oss.sonatype.org/service/local/staging/deploy/maven2</url >
306- </repository >
299+ <repository >
300+ <id >mks-repo</id >
301+ <name >Mekom Solutions Nexus Releases</name >
302+ <url >https://nexus.mekomsolutions.net/repository/maven-releases</url >
303+ </repository >
304+ <snapshotRepository >
305+ <id >mks-repo-snapshots</id >
306+ <name >Mekom Solutions Nexus Snapshots</name >
307+ <url >https://nexus.mekomsolutions.net/repository/maven-snapshots</url >
308+ </snapshotRepository >
307309 </distributionManagement >
308310
309311 <profiles >
You can’t perform that action at this time.
0 commit comments