2024-03-02 19:18:07 +00:00
|
|
|
name: Deploy
|
|
|
|
|
2024-03-02 19:49:01 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
2024-03-02 19:18:07 +00:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
uses: ./.github/workflows/build.yaml
|
|
|
|
|
|
|
|
deploy:
|
|
|
|
needs: build
|
2024-03-02 19:49:01 +00:00
|
|
|
if: needs.build.result == 'success'
|
2024-03-02 19:18:07 +00:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include:
|
2024-03-02 21:33:27 +00:00
|
|
|
- os: ubuntu-latest
|
|
|
|
tasks: >
|
|
|
|
publishAndroidNativeArm32PublicationToMavenRepository
|
|
|
|
publishAndroidNativeArm64PublicationToMavenRepository
|
|
|
|
publishAndroidNativeX64PublicationToMavenRepository
|
|
|
|
publishAndroidNativeX86PublicationToMavenRepository
|
|
|
|
publishJsPublicationToMavenRepository
|
|
|
|
publishJvmPublicationToMavenRepository
|
|
|
|
publishKotlinMultiplatformPublicationToMavenRepository
|
|
|
|
publishLinuxArm64PublicationToMavenRepository
|
|
|
|
publishLinuxX64PublicationToMavenRepository
|
|
|
|
publishWasmJsPublicationToMavenRepository
|
|
|
|
|
|
|
|
- os: windows-latest
|
|
|
|
tasks: publishMingwX64PublicationToMavenRepository
|
|
|
|
|
|
|
|
- os: macos-latest
|
|
|
|
tasks: >
|
|
|
|
publishIosArm64PublicationToMavenRepository
|
|
|
|
publishIosSimulatorArm64PublicationToMavenRepository
|
|
|
|
publishIosX64PublicationToMavenRepository
|
|
|
|
publishMacosArm64PublicationToMavenRepository
|
|
|
|
publishMacosX64PublicationToMavenRepository
|
|
|
|
publishTvosArm64PublicationToMavenRepository
|
|
|
|
publishTvosSimulatorArm64PublicationToMavenRepository
|
|
|
|
publishTvosX64PublicationToMavenRepository
|
|
|
|
publishWatchosArm32PublicationToMavenRepository
|
|
|
|
publishWatchosArm64PublicationToMavenRepository
|
|
|
|
publishWatchosSimulatorArm64PublicationToMavenRepository
|
|
|
|
publishWatchosX64PublicationToMavenRepository
|
2024-03-02 19:18:07 +00:00
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
env:
|
|
|
|
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME }}
|
|
|
|
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }}
|
|
|
|
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_KEY_ID }}
|
|
|
|
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
|
|
|
|
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout Project
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Validate Gradle Wrapper
|
|
|
|
uses: gradle/wrapper-validation-action@v2
|
|
|
|
|
|
|
|
- uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.konan
|
|
|
|
key: ${{ runner.os }}-${{ hashFiles('**/.lock') }}
|
|
|
|
|
|
|
|
- name: Setup JDK
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
distribution: temurin
|
|
|
|
java-version: 8
|
|
|
|
|
|
|
|
- name: Setup Gradle
|
|
|
|
uses: gradle/actions/setup-gradle@v3
|
|
|
|
|
|
|
|
- name: Publish with Gradle Wrapper
|
2024-03-02 21:33:27 +00:00
|
|
|
run: ./gradlew ${{ matrix.tasks }}
|