Skip to content

Publish Release

Publish Release #11

name: Publish Release
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
environment: Release
if: github.repository == 'itsmattking/k2zpl'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install JDK
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 11
- uses: gradle/gradle-build-action@v3
- name: Publish
run: ./gradlew publishMavenPublicationToMavenCentralRepository
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}