Skip to content

Commit 17190cc

Browse files
committed
Release published artifacts to Maven Central automatically
1 parent 9f5ee2d commit 17190cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
types: [published]
55

66
jobs:
7-
check:
7+
publish:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
@@ -18,7 +18,7 @@ jobs:
1818
run: ./gradlew check --continue
1919

2020
- name: Publish to Maven Central
21-
run: ./gradlew publishToSonatype closeSonatypeStagingRepository
21+
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
2222
env:
2323
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_CENTRAL_SIGNING_KEY }}
2424
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.MAVEN_CENTRAL_SIGNING_PASSWORD }}

0 commit comments

Comments
 (0)