1.2.15 (#116) #137
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: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
- name: Grant execute permissions for gradlew | |
run: chmod +x ./gradlew | |
- name: Set Gradle options | |
run: echo "GRADLE_OPTS='-Xmx4g'" >> $GITHUB_ENV | |
- name: Publish to Maven Central | |
env: | |
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | |
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }} | |
run: ./gradlew publish -x test --no-configuration-cache --no-daemon --no-build-cache --no-parallel |