Added iOS publish workflow
This commit is contained in:
parent
9f3803bdcd
commit
ebdc9ceef8
2 changed files with 41 additions and 2 deletions
36
.github/workflows/publish-ios.yml
vendored
Normal file
36
.github/workflows/publish-ios.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
name: publish
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
JAVA_VERSION: 11
|
||||
JAVA_DISTRIBUTION: 'zulu'
|
||||
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME}}
|
||||
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD}}
|
||||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGN_SECRET_KEY }}
|
||||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGN_SECRET_PWD }}
|
||||
|
||||
jobs:
|
||||
publish-ios:
|
||||
runs-on: macos-latest
|
||||
strategy:
|
||||
max-parallel: 6
|
||||
matrix:
|
||||
target:
|
||||
- publishIosArm64PublicationToOSSRHRepository
|
||||
- publishIosX64PublicationToOSSRHRepository
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up JDK ${{ env.JAVA_VERSION }}
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: ${{ env.JAVA_VERSION }}
|
||||
distribution: ${{ env.JAVA_DISTRIBUTION }}
|
||||
|
||||
- uses: gradle/gradle-build-action@v2
|
||||
|
||||
- name: Publish
|
||||
run: ./gradlew ${{ matrix.target }}
|
|
@ -74,8 +74,11 @@ kotlin {
|
|||
val macosX64Test by getting { dependsOn(nativeTest) }
|
||||
|
||||
// Apple - iOS
|
||||
val iosMain by getting { dependsOn(nativeMain) }
|
||||
val iosTest by getting { dependsOn(nativeTest) }
|
||||
val iosArm64Main by getting { dependsOn(nativeMain) }
|
||||
val iosArm64Test by getting { dependsOn(nativeTest) }
|
||||
|
||||
val iosX64Main by getting { dependsOn(nativeMain) }
|
||||
val iosX64Test by getting { dependsOn(nativeTest) }
|
||||
|
||||
// val iosSimulatorArm64Main by getting { dependsOn(iosMain) }
|
||||
// val iosSimulatorArm64Test by getting { dependsOn(iosTest) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue