Skip to content

Kstats 0.5.0

Kstats 0.5.0 #4

Workflow file for this run

name: Publish
on:
release:
types: [published]
workflow_dispatch:
env:
JAVA_OPTS: "-Xmx4g -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=768m -Djava.awt.headless=true"
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dkotlin.compiler.execution.strategy=in-process"
jobs:
publish:
name: Release build and publish
runs-on: macOS-latest
environment: release
permissions:
checks: write
contents: write
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.ref_name }}
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 21
- name: Set up Node.js 22
uses: actions/setup-node@v6
with:
node-version: 24
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Build and Test
run: ./gradlew build --continue --parallel --max-workers 2
- name: Publish Test Report
uses: mikepenz/action-junit-report@v6
if: ${{ !cancelled() }}
with:
annotate_only: true
detailed_summary: true
report_paths: '**/build/test-results/**/TEST-*.xml'
- name: Publish to MavenCentral
run: ./gradlew publishToMavenCentral --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSPHRASE }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_SECRET_KEY }}