diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-05-06 13:37:51 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-05-06 14:04:05 +0200 |
| commit | d4eb8ccd4f5d93d9e858b9c3ed6ff48763e68820 (patch) | |
| tree | 69f1a0edf7223e42e143e2d1d094c6eaaad0c400 /.github | |
| parent | c244d7e42a88105fbec5356030ed266f1af0811e (diff) | |
ci: Add workflow step for publishing release to Maven Central
This change adds a workflow step that publishes the release to Maven
Central using Gradle.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/release.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 59dc346a..d9cd6c97 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,15 @@ jobs: ${{ runner.os }}-${{ matrix.java }}-gradle- - name: Build with Gradle run: ./gradlew :assembleDist - - name: Release + - name: Publish with Gradle + run: ./gradlew publish + env: + ORG_GRADLE_PROJECT_signingKeyId: F8134F9C + ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }} + ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PASSPHRASE }} + ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME }} + ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }} + - name: Create Release uses: softprops/action-gh-release@v1 with: prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-m') }} |
