From 05827a3f65166d6995195a39fe234f5b7cbd07c9 Mon Sep 17 00:00:00 2001 From: Shubham Singh Date: Sat, 2 Sep 2023 00:42:03 +0530 Subject: [PATCH] Add release publishLibraryVariants to android target and update github action publish task's platform and gradle task --- .github/workflows/publish.yml | 4 ++-- adapt/build.gradle.kts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ddb3390..bac570f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,7 +9,7 @@ on: jobs: publish: name: Publish - runs-on: ubuntu-latest + runs-on: macos-latest steps: - name: Checkout repository @@ -32,7 +32,7 @@ jobs: - name: Publish Library run: | echo "Publishing and Releasing library 🚀" - ./gradlew publishAllPublicationsToMavenCentral --no-configuration-cache + ./gradlew :adapt:publishAllPublicationsToMavenCentralRepository --no-configuration-cache echo "Published and Released ✅" env: ORG_GRADLE_PROJECT_VERSION_NAME: ${{ github.event.inputs.versionName }} diff --git a/adapt/build.gradle.kts b/adapt/build.gradle.kts index da40c50..a362e27 100644 --- a/adapt/build.gradle.kts +++ b/adapt/build.gradle.kts @@ -30,6 +30,8 @@ plugins { kotlin { targetHierarchy.default() androidTarget { + publishLibraryVariants("release") + compilations.all { kotlinOptions { jvmTarget = "17"