Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitHub Actions instead of Travis CI #50

Merged
merged 2 commits into from
Sep 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/maven-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build
on: [ push, pull_request ]
jobs:

build:
name: Maven Build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Java
uses: bjhargrave/setup-java@a1600c1f88a7741e2420b0a657f2838cec4f09c5
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When upstream action is fixed, change this to:

uses: actions/setup-java@v2

with:
java-version: '8'
distribution: 'temurin'
cache: maven
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Build and deploy with Maven
if: github.ref == 'refs/heads/main'
run: mvn -Dstyle.color=always -B -U -P sign deploy
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}

- name: Build with Maven
if: github.ref != 'refs/heads/main'
run: mvn -Dstyle.color=always -B -U verify
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .travis/script.sh

This file was deleted.

10 changes: 0 additions & 10 deletions .travis/setup-signing.sh

This file was deleted.

Binary file removed .travis/signingkey.asc.enc
Binary file not shown.
277 changes: 0 additions & 277 deletions LICENSE

This file was deleted.