Skip to content

Commit

Permalink
Add initial GitHub Actions CI configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
heuermh committed May 6, 2021
1 parent 1aa2072 commit 16e67cb
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: CI

on: pull_request

jobs:
build:
runs-on: ubuntu-latest

env:
SPARK_LOCAL_IP: localhost
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- 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
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy Snapshot

on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.repository == 'bigdatagenomics/adam' }}
env:
SPARK_LOCAL_IP: localhost
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
server-id: sonatype-nexus-snapshots
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- env:
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}
run: mvn --batch-mode -DskipTests=true deploy

0 comments on commit 16e67cb

Please sign in to comment.