Skip to content

ci: fix grabbing maven secrets #2

ci: fix grabbing maven secrets

ci: fix grabbing maven secrets #2

Workflow file for this run

name: Publish
on:
workflow_dispatch:
push:
tags:
- '*'
jobs:
maven:
runs-on: ubuntu-latest
environment: Maven publish
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '21'
cache: gradle
- name: Publish to Maven Central
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_KEY_PASSPHRASE }}
ORG_GRADLE_PROJECT_RELEASE_SIGNING_ENABLED: "true"
run: ./gradlew publishAllPublicationsToMavenCentralRepository --no-parallel --no-daemon