Skip to content

Commit

Permalink
[actions] reorganize publishing setup.
Browse files Browse the repository at this point in the history
It is mostly based on what kotlin-multiplatform-libsodium does e.g.:
https://github.com/ionspin/kotlin-multiplatform-libsodium/blob/main/publishMacToMaven.sh
  • Loading branch information
atsushieno committed Apr 15, 2024
1 parent de54a48 commit e1f824c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
# only for releases on macos-13
- name: macos-13 lightweight publish with Gradle for libs
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(matrix.os, 'macos-13') }}
run: ./gradlew --no-daemon --warning-mode all publish
run: ./gradlew --no-daemon --warning-mode all publishAllPublicationsToMavenRepository -x publishKotlinMultiplatformPublicationToMavenRepository -x publishJvmPublicationToMavenRepository -x publishAndroidDebugPublicationToMavenRepositor -x publishAndroidReleasePublicationToMavenRepository
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Expand All @@ -93,7 +93,7 @@ jobs:
# only for releases on macos-14
- name: macos-14 lightweight publish with Gradle for libs and apps
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(matrix.os, 'macos-14') }}
run: ./gradlew --no-daemon --warning-mode all publish iosArm64Binaries packageDmg
run: ./gradlew --no-daemon --warning-mode all iosArm64Binaries packageDmg publishAllPublicationsToMavenRepository -x publishKotlinMultiplatformPublicationToMavenRepository -x publishJvmPublicationToMavenRepository -x publishAndroidDebugPublicationToMavenRepositor -x publishAndroidReleasePublicationToMavenRepository
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Expand Down

0 comments on commit e1f824c

Please sign in to comment.