Skip to content

Commit 921929f

Browse files
authored
Add Github Actions CI (#8)
1 parent 2a6a6c2 commit 921929f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: CI with Gradle
5+
6+
on:
7+
push:
8+
branches: master
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up JDK 11
19+
uses: actions/setup-java@v2
20+
with:
21+
java-version: '11'
22+
distribution: 'adopt'
23+
cache: gradle
24+
- name: Build
25+
run: ./gradlew build
26+
- name: Publish to Maven local with Gradle
27+
run: ./gradlew publishToMavenLocal

0 commit comments

Comments
 (0)