Skip to content

Commit

Permalink
Merge pull request #1 from icrc/add-github-actions
Browse files Browse the repository at this point in the history
add github actions to publish
  • Loading branch information
icrc-fdeniger authored Apr 23, 2024
2 parents 589f30b + 44700f6 commit 92b17a1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ jobs:
strategy:
matrix:
platform: [ ubuntu-latest ]
java-version: [ 8, 11, 13, 14 ]
java-version: [ 8 ]

runs-on: ${{ matrix.platform }}
permissions:
contents: read
packages: write
env:
PLATFORM: ${{ matrix.platform }}
JAVA_VERSION: ${{ matrix.java-version }}
Expand All @@ -36,4 +39,9 @@ jobs:
run: mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true --batch-mode --show-version --file pom.xml
- name: Build with Maven
run: mvn test --batch-mode --file pom.xml
- name: Publish package
if: ${{ github.event_name == 'push' }}
run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

11 changes: 3 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,10 @@
</repositories>
<distributionManagement>
<repository>
<id>openmrs-repo-modules</id>
<name>OpenMRS Nexus Repository</name>
<url>https://mavenrepo.openmrs.org/nexus/content/repositories/modules</url>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/icrc/openmrs-module-spa</url>
</repository>
<snapshotRepository>
<id>openmrs-repo-snapshots</id>
<name>OpenMRS Snapshots</name>
<url>https://mavenrepo.openmrs.org/nexus/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

<pluginRepositories>
Expand Down

0 comments on commit 92b17a1

Please sign in to comment.