diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 7201f24e..bd8e76d2 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -35,4 +35,4 @@ jobs: export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text) echo "::add-mask::$SONATYPE_USERNAME" echo "::add-mask::$SONATYPE_PASSWORD" - ./gradlew publishNebulaPublicationToSnapshotsRepository + ./gradlew opensearch-job-scheduler-spi:publishAllPublicationsToSnapshotsRepository && ./gradlew publishPluginZipPublicationToSnapshotsRepository diff --git a/spi/build.gradle b/spi/build.gradle index cf9f3408..ff8dccb8 100644 --- a/spi/build.gradle +++ b/spi/build.gradle @@ -110,6 +110,14 @@ publishing { name = 'staging' url = "${rootProject.buildDir}/local-staging-repo" } + maven { + name = "Snapshots" // optional target repository name + url = "https://aws.oss.sonatype.org/content/repositories/snapshots" + credentials { + username "$System.env.SONATYPE_USERNAME" + password "$System.env.SONATYPE_PASSWORD" + } + } } publications { shadow(MavenPublication) { publication ->