From b5337237faff8faada6f0e434ffe48941edd0245 Mon Sep 17 00:00:00 2001 From: Michael L Heuer Date: Wed, 17 Nov 2021 15:46:47 -0600 Subject: [PATCH] Migrate CI from Travis to Github Actions. --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ .github/workflows/deploy.yml | 29 +++++++++++++++++++++++++++++ .travis.yml | 1 - README.md | 3 --- 4 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/deploy.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9d8fc46 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI + +on: pull_request + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'temurin' + - uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - run: mvn --batch-mode --update-snapshots clean package diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..723eb45 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,29 @@ +name: Deploy Snapshot + +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + if: ${{ github.repository == 'biojava/biojava-legacy' }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'temurin' + server-id: sonatype-nexus-snapshots + server-username: MAVEN_USERNAME + server-password: MAVEN_PASSWORD + - uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - env: + MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }} + MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }} + run: mvn --batch-mode -DskipTests=true deploy diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index dff5f3a..0000000 --- a/.travis.yml +++ /dev/null @@ -1 +0,0 @@ -language: java diff --git a/README.md b/README.md index 8e82e5c..565d856 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,3 @@ biojava-legacy This repository contains code from BioJava 1. The goal is to port all features present in BioJava 1 to the BioJava 3 codebase, available at https://github.com/biojava/biojava. However, until that goal is achieved this repository will remain active for minor changes and bug fixes. - -### Build Status -[![Build Status](https://travis-ci.org/biojava/biojava-legacy.png)](https://travis-ci.org/biojava/biojava-legacy)