Skip to content

Commit

Permalink
Adds multistep deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
asm0dey committed Jul 10, 2023
1 parent d82bdb6 commit ea622f8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,24 @@ jobs:
uses: ./.github/workflows/gradle.yml
deploy:
needs: build
runs-on: macos-latest
strategy:
matrix:
include:
- target: publishKotlinMultiplatformPublicationToSonatypeRepository
os: macos-latest
- target: publishIosArm64PublicationToSonatypeRepository
os: macos-latest
- target: publishIosSimulatorArm64PublicationToSonatypeRepository
os: macos-latest
- target: publishAndroidDebugPublicationToSonatypeRepository
os: ubuntu-latest
- target: publishAndroidReleasePublicationToSonatypeRepository
os: ubuntu-latest
- target: publishJvmPublicationToSonatypeRepository
os: ubuntu-latest
- target: publishLinuxX64PublicationToSonatypeRepository
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
Expand All @@ -39,7 +56,7 @@ jobs:
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25
with:
arguments: |
publishAllPublicationsToSonatypeRepository
${{ matrix.target }}
closeSonatypeStagingRepository
-Psigning.gnupg.passphrase=${{secrets.OSSRH_GPG_SECRET_KEY_PASSWORD}}
-Psigning.gnupg.keyName=${{secrets.OSSRH_GPG_SECRET_KEY_ID}}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "com.github.asm0dey"
version = "0.0.1.1"
version = "0.0.1.2"

repositories {
google()
Expand Down

0 comments on commit ea622f8

Please sign in to comment.