Publish to Maven #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to Maven | |
on: | |
workflow_dispatch: | |
jobs: | |
publish: | |
name: Snapshot build and publish | |
runs-on: ubuntu-latest | |
environment: PRODUCTION | |
timeout-minutes: 120 | |
env: | |
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }} | |
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} | |
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} | |
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} | |
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} | |
SONATYPE_CONNECT_TIMEOUT_SECONDS: 120 | |
SONATYPE_CLOSE_TIMEOUT_SECONDS: 1800 | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Grant Permission to Execute Gradle | |
run: chmod +x gradlew | |
- name: Publish to MavenCentral | |
run: | | |
./gradlew :publish --no-configuration-cache |