Skip to content

Commit

Permalink
Deployment Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
TheArchitect123 committed Jan 28, 2025
1 parent 8c6441d commit 18e22de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,7 @@ jobs:
distribution: 'zulu'
java-version: '17'

# Step 4: Build Artifacts
- name: Build Artifacts
# Step 3: Build Artifacts
- name: Build Artifacts And Publish
run: |
./gradlew buildAllPlatforms
# Step 6: Publish to Maven Central
- name: Publish to Maven Central
run: |
./gradlew :shared:publishToMavenCentral --info --stacktrace --scan --debug
./gradlew buildAllPlatformsAndPublish --info --stacktrace --scan
5 changes: 3 additions & 2 deletions shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,10 @@ dependencies {
}

tasks.named("sourcesJar").configure { dependsOn(":shared:kspCommonMainKotlinMetadata") }
tasks.register("buildAllPlatforms") {
tasks.register("buildAllPlatformsAndPublish") {
dependsOn(
"clean", "assemble", ":shared:linkReleaseFrameworkIosArm64", ":shared:publishToMavenLocal"
"clean", "assemble", ":shared:linkReleaseFrameworkIosArm64", ":shared:publishToMavenLocal",
":shared:publishToMavenCentral"
)
}

Expand Down

0 comments on commit 18e22de

Please sign in to comment.