Rename master branch to main #227
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
tags: [ 'v*' ] | |
branches: [ 'main', '[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 clean | |
- name: Publish to Maven | |
run: >- | |
./gradlew | |
publishMacosX64PublicationToMavenRepository | |
publishMacosArm64PublicationToMavenRepository | |
publishIosSimulatorArm64PublicationToMavenRepository | |
publishIosX64PublicationToMavenRepository | |
publishWatchosSimulatorArm64PublicationToMavenRepository | |
publishWatchosX64PublicationToMavenRepository | |
publishWatchosArm32PublicationToMavenRepository | |
publishWatchosArm64PublicationToMavenRepository | |
publishTvosSimulatorArm64PublicationToMavenRepository | |
publishTvosX64PublicationToMavenRepository | |
publishTvosArm64PublicationToMavenRepository | |
publishIosArm64PublicationToMavenRepository | |
publishWatchosDeviceArm64PublicationToMavenRepository |