Skip to content

Minor fixes.

Minor fixes. #9

Workflow file for this run

name: Build
on:
push:
branches:
- master
defaults:
run:
shell: bash
jobs:
build:
name: Build and Publish
if: ${{ !contains(github.event.head_commit.message, '#skip') }}
strategy:
fail-fast: true
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '16'
- name: Build and Publish to Maven Central
run: |
case ${{ matrix.os }} in
windows-latest)
./gradlew publishMingwPublicationToMavenCentral
;;
ubuntu-latest)
./gradlew publishLinuxX64PublicationToMavenCentral publishLinuxArm64PublicationToMavenCentral publishJvmPublicationToMavenCentral
;;
macos-latest)
./gradlew publishMacosX64PublicationToMavenCentral publishMacosArm64PublicationToMavenCentral
;;
esac
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}