Skip to content

Commit

Permalink
publication task was not using repositoryId based URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
atsushieno committed Apr 12, 2024
1 parent b8de381 commit 77c1805
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: build dist
on:
push:
pull_request:
workflow_dispatch:

jobs:
create_staging_repository:
Expand All @@ -16,9 +17,9 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
uses: nexus-actions/create-nexus-staging-repo@main
with:
username: atsushieno
username: ${{ secrets.OSSRH_USERNAME }}
password: ${{ secrets.OSSRH_PASSWORD }}
staging_profile_id: 1b92322eb8632e
staging_profile_id: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
description: ${{ github.repository }}/${{ github.workflow }}#${{ github.run_number }}
base_url: https://s01.oss.sonatype.org/service/local/

Expand Down
3 changes: 2 additions & 1 deletion ktmidi-ci/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ android {
}
}

val repositoryId = ext["ossrhStagingRepositoryId"]
val moduleDescription = "Kotlin Multiplatform library for MIDI 1.0 and MIDI 2.0 - MIDI-CI support"
// copypasting
afterEvaluate {
Expand Down Expand Up @@ -181,7 +182,7 @@ afterEvaluate {
repositories {
maven {
name = "OSSRH"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
url = uri("https://s01.oss.sonatype.org/service/local/staging/deployByRepositoryId/$repositoryId/")
credentials {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_PASSWORD")
Expand Down
3 changes: 2 additions & 1 deletion ktmidi-jvm-desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ compileTestKotlin {
kotlinOptions.jvmTarget = '11'
}

var repositoryId = ext["ossrhStagingRepositoryId"]
var moduleDescription = "Kotlin Multiplatform library for MIDI 1.0 and MIDI 2.0 - ALSA and RtMidi"
afterEvaluate {
publishing {
Expand Down Expand Up @@ -80,7 +81,7 @@ afterEvaluate {
repositories {
maven {
name = "OSSRH"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
url = uri("https://s01.oss.sonatype.org/service/local/staging/deployByRepositoryId/${repositoryId}/")
credentials {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_PASSWORD")
Expand Down
3 changes: 2 additions & 1 deletion ktmidi-native-ext/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ tasks {
}
}

val repositoryId = ext["ossrhStagingRepositoryId"]
val moduleDescription = "Kotlin Multiplatform library for MIDI 1.0 and MIDI 2.0 - Native specific"
// copypasting
afterEvaluate {
Expand Down Expand Up @@ -122,7 +123,7 @@ afterEvaluate {
repositories {
maven {
name = "OSSRH"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
url = uri("https://s01.oss.sonatype.org/service/local/staging/deployByRepositoryId/$repositoryId/")
credentials {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_PASSWORD")
Expand Down
3 changes: 2 additions & 1 deletion ktmidi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ android {
}
}

val repositoryId = ext["ossrhStagingRepositoryId"]
val moduleDescription = "Kotlin Multiplatform library for MIDI 1.0 and MIDI 2.0"
// copypasting
afterEvaluate {
Expand Down Expand Up @@ -213,7 +214,7 @@ afterEvaluate {
repositories {
maven {
name = "OSSRH"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
url = uri("https://s01.oss.sonatype.org/service/local/staging/deployByRepositoryId/${repositoryId}/")
credentials {
username = System.getenv("OSSRH_USERNAME")
password = System.getenv("OSSRH_PASSWORD")
Expand Down

0 comments on commit 77c1805

Please sign in to comment.