Skip to content

Commit

Permalink
Add configuration for publishing snapshot
Browse files Browse the repository at this point in the history
Signed-off-by: Chenyang Ji <[email protected]>
  • Loading branch information
ansjcy committed Sep 4, 2024
1 parent 3c561e0 commit 19262f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,5 @@ 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"
# For JS-SPI jar
./gradlew publishShadowPublicationToSnapshotsRepository
# For JS jar
./gradlew publishNebulaPublicationToSnapshotsRepository
# For JS plugin zip
./gradlew publishPluginZipPublicationToSnapshotsRepository
10 changes: 10 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ publishing {
}
}
}
repositories {
maven {
name = "Snapshots"
url = "https://aws.oss.sonatype.org/content/repositories/snapshots"
credentials {
username "$System.env.SONATYPE_USERNAME"
password "$System.env.SONATYPE_PASSWORD"
}
}
}
}

checkstyle {
Expand Down

0 comments on commit 19262f1

Please sign in to comment.