Skip to content

Commit ae8ed90

Browse files
committed
Automaticaly publish to maven central on release
1 parent 863c2ae commit ae8ed90

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/gradle.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ on:
1111

1212
jobs:
1313
build:
14-
1514
runs-on: ubuntu-latest
16-
1715
steps:
1816
- uses: actions/checkout@v2
1917
- name: Set up JDK 1.11

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow will build a Java project with Gradle
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Publish to Maven Central
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up JDK 1.11
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 1.11
19+
- name: Grant execute permission for gradlew
20+
run: chmod +x gradlew
21+
- name: Build with Gradle
22+
run: ./gradlew build
23+
- name: Build with Gradle
24+
run: ./gradlew publish

0 commit comments

Comments
 (0)