30 lines
1.0 KiB
YAML
30 lines
1.0 KiB
YAML
name: Publish Release
|
|
on:
|
|
release:
|
|
types:
|
|
- prereleased
|
|
- released
|
|
jobs:
|
|
publish-to-maven-central:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'adopt'
|
|
java-version: '21'
|
|
- name: Publish to Maven Central
|
|
uses: burrunan/gradle-cache-action@v1
|
|
with:
|
|
gradle-version: wrapper
|
|
arguments: publishAndReleaseToMavenCentral
|
|
properties: |
|
|
SONATYPE_AUTOMATIC_RELEASE=true
|
|
release=true
|
|
env:
|
|
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
|
|
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
|
|
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.MAVEN_SIGNING_KEY }}
|
|
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.MAVEN_SIGNING_KEY_ID }}
|
|
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.MAVEN_SIGNING_KEY_PASSPHRASE }}
|