Skip to content

Commit

Permalink
Added github actions and removed Travis CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sambhav Dave authored and krmahadevan committed May 31, 2022
1 parent c5df209 commit 64a17da
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 42 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Compile project With Maven

on:
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'corretto'
cache: maven
- name: Compile Project With Maven
run: mvn clean test-compile
22 changes: 22 additions & 0 deletions .github/workflows/maven-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish package to the Maven Central Repository
on:
push:
branches: [ master ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'corretto'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn clean deploy
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

6 changes: 0 additions & 6 deletions deploy/publish.sh

This file was deleted.

Binary file removed deploy/pubring.gpg.enc
Binary file not shown.
Binary file removed deploy/secring.gpg.enc
Binary file not shown.
9 changes: 0 additions & 9 deletions deploy/settings.xml

This file was deleted.

0 comments on commit 64a17da

Please sign in to comment.