Skip to content

Commit

Permalink
INFRA-411: Use shared GA workflows to build and publish (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaud authored Oct 14, 2024
1 parent c42ebcd commit 28e2433
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
release:
types: [published]

jobs:
build:
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-build-test.yml@main
with:
java-version: "8"
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

publish:
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'release' }}
needs: build
uses: mekomsolutions/shared-github-workflow/.github/workflows/maven-publish.yml@main
secrets:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
13 changes: 13 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,19 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

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

<dependencies>

<!-- OpenMRS Core dependencies -->
Expand Down

0 comments on commit 28e2433

Please sign in to comment.