Skip to content

fix(ci): migrate to new sonatype publisher API #207

fix(ci): migrate to new sonatype publisher API

fix(ci): migrate to new sonatype publisher API #207

Workflow file for this run

name: Build
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
cache: 'gradle'
- name: Build with Gradle
run: ./gradlew test build --no-daemon
- name: Publish to Sonatype
if: github.ref == 'refs/heads/master'
env:
JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
JRELEASER_MAVENCENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
run: ./gradlew -i jreleaserFullRelease --no-daemon