4.9.19 #104
Workflow file for this run
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 Central | |
on: | |
release: | |
types: [ published ] | |
jobs: | |
publish: | |
environment: mavenCentralPublish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4 | |
- name: Setup Java | |
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4 | |
with: | |
distribution: 'adopt' | |
java-version: '11' | |
- name: Check | |
run: ./gradlew check | |
- name: Publish to Maven Central | |
env: | |
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGN_KEY }} | |
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGN_KEY_PASS }} | |
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} | |
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} | |
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository |