Improve SoundChannelGroup API (#2162) #140
Workflow file for this run
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: DEPLOY | |
on: | |
push: | |
tags: | |
- 'v*' | |
workflow_dispatch: | |
inputs: | |
forced_version: | |
description: 'FORCED_VERSION to use' | |
required: true | |
type: string | |
env: | |
CI: true | |
FORCED_VERSION: ${{ inputs.forced_version || github.ref }} | |
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }} | |
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPEUSERNAME }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPEPASSWORD }} | |
JAVA_VERSION: 17 | |
JAVA_DISTRIBUTION: zulu | |
jobs: | |
create-staging-repo: | |
runs-on: ubuntu-latest | |
outputs: | |
stagedRepositoryId: ${{ steps.createStagedRepositoryId.outputs.stagedRepositoryId }} | |
env: | |
DISABLE_JAVASCRIPT_TEST: true | |
DISABLE_KOTLIN_NATIVE: true | |
DISABLE_ANDROID: true | |
DISABLE_SANDBOX: true | |
steps: | |
- run: "echo FORCED_VERSION=$FORCED_VERSION" | |
- uses: actions/checkout@v1 | |
- { name: Set up JDK, uses: actions/setup-java@v3, with: { distribution: "${{ env.JAVA_DISTRIBUTION }}", java-version: "${{ env.JAVA_VERSION }}" } } | |
- { name: Replace gradle wrapper, run: "sed 's/-all/-bin/g' gradle/wrapper/gradle-wrapper.properties > gradle/wrapper/gradle-wrapper.properties.bak; cp gradle/wrapper/gradle-wrapper.properties.bak gradle/wrapper/gradle-wrapper.properties" } | |
- { name: Prepare Gradle, uses: gradle/gradle-build-action@ef76a971e2fa3f867b617efd72f2fbd72cf6f8bc } # v2.8.0 | |
- run: sudo apt-get install xvfb | |
- id: createStagedRepositoryId | |
run: xvfb-run --auto-servernum ./gradlew --no-daemon --info --stacktrace startReleasingMavenCentral | |
publish: | |
strategy: | |
fail-fast: false # Once working, comment this | |
matrix: | |
include: | |
- { os: macos-11, tasks: publishIosArm64PublicationToMavenRepository publishIosX64PublicationToMavenRepository publishIosSimulatorArm64PublicationToMavenRepository } | |
- { os: macos-11, tasks: publishTvosX64PublicationToMavenRepository publishTvosArm64PublicationToMavenRepository publishTvosSimulatorArm64PublicationToMavenRepository } | |
- { os: macos-11, tasks: publishMacosX64PublicationToMavenRepository publishMacosArm64PublicationToMavenRepository } | |
- { os: ubuntu-latest, tasks: publishKotlinMultiplatformPublicationToMavenRepository publishJvmPublicationToMavenRepository } | |
- { os: ubuntu-latest, tasks: publishWasmJsPublicationToMavenRepository publishJsPublicationToMavenRepository publishAndroidPublicationToMavenRepository } | |
- { os: ubuntu-latest, tasks: publishMingwX64PublicationToMavenRepository publishLinuxX64PublicationToMavenRepository publishLinuxArm64PublicationToMavenRepository } | |
runs-on: ${{ matrix.os }} | |
needs: [create-staging-repo] | |
env: | |
stagedRepositoryId: ${{needs.create-staging-repo.outputs.stagedRepositoryId}} | |
steps: | |
- uses: actions/checkout@v1 | |
- { name: Set up JDK, uses: actions/setup-java@v3, with: { distribution: "${{ env.JAVA_DISTRIBUTION }}", java-version: "${{ env.JAVA_VERSION }}" } } | |
- { name: Replace gradle wrapper, run: "sed 's/-all/-bin/g' gradle/wrapper/gradle-wrapper.properties > gradle/wrapper/gradle-wrapper.properties.bak; cp gradle/wrapper/gradle-wrapper.properties.bak gradle/wrapper/gradle-wrapper.properties" } | |
- { name: Prepare Gradle, uses: gradle/gradle-build-action@ef76a971e2fa3f867b617efd72f2fbd72cf6f8bc } # v2.8.0 | |
#- run: sudo apt-get install xvfb | |
#- run: xvfb-run --auto-servernum ./gradlew --no-daemon checkReleasingMavenCentral | |
- run: ./gradlew checkReleasingMavenCentral | |
- run: ./gradlew ${{ matrix.tasks }} | |
publish-finalize: | |
runs-on: ubuntu-latest | |
needs: [publish] | |
env: | |
stagedRepositoryId: ${{needs.create-staging-repo.outputs.stagedRepositoryId}} | |
DISABLE_JAVASCRIPT_TEST: true | |
DISABLE_KOTLIN_NATIVE: true | |
DISABLE_ANDROID: true | |
DISABLE_SANDBOX: true | |
steps: | |
- uses: actions/checkout@v1 | |
- { name: Set up JDK, uses: actions/setup-java@v3, with: { distribution: "${{ env.JAVA_DISTRIBUTION }}", java-version: "${{ env.JAVA_VERSION }}" } } | |
- { name: Replace gradle wrapper, run: "sed 's/-all/-bin/g' gradle/wrapper/gradle-wrapper.properties > gradle/wrapper/gradle-wrapper.properties.bak; cp gradle/wrapper/gradle-wrapper.properties.bak gradle/wrapper/gradle-wrapper.properties" } | |
- { name: Prepare Gradle, uses: gradle/gradle-build-action@ef76a971e2fa3f867b617efd72f2fbd72cf6f8bc } # v2.8.0 | |
- run: ./gradlew releaseMavenCentral |