Skip to content

Commit

Permalink
Add release publishLibraryVariants to android target and update githu…
Browse files Browse the repository at this point in the history
…b action publish task's platform and gradle task
  • Loading branch information
shubhamsinghshubham777 committed Sep 1, 2023
1 parent f22e157 commit 05827a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
runs-on: macos-latest

steps:
- name: Checkout repository
Expand All @@ -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 }}
Expand Down
2 changes: 2 additions & 0 deletions adapt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ plugins {
kotlin {
targetHierarchy.default()
androidTarget {
publishLibraryVariants("release")

compilations.all {
kotlinOptions {
jvmTarget = "17"
Expand Down

0 comments on commit 05827a3

Please sign in to comment.