Skip to content

Commit

Permalink
Merge pull request #7 from RADAR-base/release-1.1.2
Browse files Browse the repository at this point in the history
Release 1.1.2
  • Loading branch information
yatharthranjan authored Mar 8, 2021
2 parents 2cd4a0e + bcc751c commit ea21ddf
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 37 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Continuous integration, including test and integration test
name: CI

# Run in master and dev branches and in all pull requests to those branches
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]

jobs:
# Build and test the code
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- uses: actions/setup-java@v1
with:
java-version: 11

- name: Cache
uses: actions/cache@v2.0.0
with:
# Cache gradle directories
path: |
~/.gradle/caches/jars-3
~/.gradle/caches/modules-2/files-2.1/
~/.gradle/caches/modules-2/metadata-2.96/
~/.gradle/native
~/.gradle/wrapper
# Key for restoring and saving the cache
key: ${{ runner.os }}-gradle

# Compile the code
- name: Compile code
run: ./gradlew assemble

# Gradle check
- name: Check
run: ./gradlew check
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Create release files
name: Release

on:
release:
types: [published]

jobs:
upload:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11

- name: Cache
uses: actions/cache@v2.0.0
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: |
~/.gradle/caches/jars-3
~/.gradle/caches/modules-2/files-2.1/
~/.gradle/caches/modules-2/metadata-2.96/
~/.gradle/native
~/.gradle/wrapper
# An explicit key for restoring and saving the cache
key: ${{ runner.os }}-gradle

# Compile code
- name: Compile code
run: ./gradlew assemble

# Upload it to GitHub
- name: Upload to GitHub
uses: AButler/upload-release-assets@v2.0
with:
files: 'build/libs/*;radar-spring-auth/build/libs/*'
repo-token: ${{ secrets.GITHUB_TOKEN }}

# Upload to bintray
- name: Upload to Bintray
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
run: ./gradlew bintrayUpload
36 changes: 0 additions & 36 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 @@ -5,7 +5,7 @@ plugins {
}

group 'org.radarbase'
version '1.1.1'
version '1.1.2'

sourceCompatibility = 1.8

Expand Down

0 comments on commit ea21ddf

Please sign in to comment.