Skip to content

Commit

Permalink
Merge pull request #59 from avast/github-actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sideeffffect authored Jan 5, 2021
2 parents b12d5f6 + cda6d87 commit 21756d7
Show file tree
Hide file tree
Showing 7 changed files with 80 additions and 22 deletions.
4 changes: 4 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
template: |
## Pull Requests
$CHANGES
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI
on:
pull_request:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scala-version: [2.12.10, 2.13.1]
steps:
- uses: actions/[email protected]
with:
fetch-depth: 100
- name: Fetch tags
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
- uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
- name: Coursier cache
uses: coursier/cache-action@v5
# - name: sbt ci ${{ github.ref }}
# run: ./sbt ci
- name: gradle test ${{ github.ref }}
run: ./gradlew test
env:
SCALA_VERSION: ${{ matrix.scala-version }}
14 changes: 14 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Release Drafter

on:
push:
branches:
- master

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release
on:
push:
# branches: [ master ]
tags: ["*"]
jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
scala-version: [2.12.10, 2.13.1]
steps:
- uses: actions/[email protected]
with:
fetch-depth: 100
- name: Fetch tags
run: git fetch --depth=100 origin +refs/tags/*:refs/tags/*
- uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
- name: Coursier cache
uses: coursier/cache-action@v5
# - name: sbt ci-release ${{ github.ref }}
# run: ./sbt ci-release
- name: gradle bintrayUpload ${{ github.ref }}
run: ./gradlew bintrayUpload -Pversion="$GITHUB_REF" --info
env:
# PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
# PGP_SECRET: ${{ secrets.PGP_SECRET }}
# SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
# SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SCALA_VERSION: ${{ matrix.scala-version }}
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
8 changes: 0 additions & 8 deletions .travis.sh

This file was deleted.

13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ version = version == 'unspecified' ? 'DEVELOPER-SNAPSHOT' : version

allprojects {
ext {
def scalaVersionEnv = System.getenv("TRAVIS_SCALA_VERSION")
def scalaVersionEnv = System.getenv("SCALA_VERSION")

scalaVersionFull = scalaVersionEnv != null ? scalaVersionEnv : "2.12.12"
scalaVersion = "${scalaVersionFull}".split("\\.").dropRight(1).join(".")
Expand Down

0 comments on commit 21756d7

Please sign in to comment.