Skip to content

Implement configurable class discriminator #225

Implement configurable class discriminator

Implement configurable class discriminator #225

Workflow file for this run

name: Publish
on:
push:
tags: [ 'v*' ]
branches: [ 'master', '[0-9]+.[0-9]+', '[0-9]+.[0-9]+.[0-9]+' ]
env:
GIT_REF: ${{ github.ref }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
jobs:
windows:
name: "Publish: multiplatform, jvm, js, linux, mingw"
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
- name: Clean
if: ${{ false }} # Skip, since it fails on Windows: https://youtrack.jetbrains.com/issue/KT-50545/
run: \gradlew.bat clean
- name: Publish to Maven
run: >-
.\gradlew.bat
publishKotlinMultiplatformPublicationToMavenRepository
publishJvmPublicationToMavenRepository
publishJsPublicationToMavenRepository
publishLinuxX64PublicationToMavenRepository
publishLinuxArm64PublicationToMavenRepository
publishMingwX64PublicationToMavenRepository
macos:
name: "Publish: macos, ios, watchos"
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
- name: Clean
run: \gradlew.bat clean
- name: Publish to Maven
run: >-
./gradlew
publishMacosX64PublicationToMavenRepository
publishMacosArm64PublicationToMavenRepository
publishIosSimulatorArm64PublicationToMavenRepository
publishIosX64PublicationToMavenRepository
publishWatchosSimulatorArm64PublicationToMavenRepository
publishWatchosX64PublicationToMavenRepository
publishWatchosArm32PublicationToMavenRepository
publishWatchosArm64PublicationToMavenRepository
publishTvosSimulatorArm64PublicationToMavenRepository
publishTvosX64PublicationToMavenRepository
publishTvosArm64PublicationToMavenRepository
publishIosArm64PublicationToMavenRepository
publishWatchosDeviceArm64PublicationToMavenRepository