Skip to content

Commit

Permalink
chore: Migrate to GitHub Actions and Sonatype (#54)
Browse files Browse the repository at this point in the history
* chore: Migrate to GitHub Actions and Sonatype

Both Travis and Bintray are no longer very good for OSS projects.

* refactor: Update .gitignore

Co-authored-by: Jakub Janeček <[email protected]>
  • Loading branch information
jakubjanecek and Jakub Janeček authored Feb 5, 2021
1 parent 3ef527e commit 26770df
Show file tree
Hide file tree
Showing 16 changed files with 397 additions and 450 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build
on:
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: coursier/cache-action@v5
- name: Check/Compile/Test
run: sbt test
17 changes: 17 additions & 0 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: PR Build
on: [pull_request]

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: coursier/cache-action@v5
with:
extraKey: pr-${GITHUB_HEAD_REF}
- name: Check/Compile/Test
run: sbt test
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release
on:
push:
tags: ["v*"]

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- uses: coursier/cache-action@v5
- name: Check/Compile/Test
run: sbt test
- name: Release
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
run: sbt ci-release
Loading

0 comments on commit 26770df

Please sign in to comment.