Skip to content

1.2.11 (#112)

1.2.11 (#112) #133

Workflow file for this run

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