Skip to content

Commit 84ba8b4

Browse files
author
yweber
committed
added publish workflow
1 parent d0e1b5e commit 84ba8b4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ on:
66
- created
77

88
jobs:
9-
build:
9+
publish:
10+
environment: mavenCentralPublish
1011
runs-on: ubuntu-latest
1112
steps:
1213
- name: checkout
1314
uses: actions/checkout@v2
1415
- name: setup java
15-
uses: actions/setup-java@v1
16+
uses: actions/setup-java@v2
1617
with:
17-
java-version: "11"
18+
distribution: 'adopt'
19+
java-version: '11'
1820
- name: Check
1921
run: ./graldew check
2022
- name: Publish to Maven Central
@@ -25,3 +27,4 @@ jobs:
2527
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }}
2628
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
2729

30+

0 commit comments

Comments
 (0)