Skip to content

Commit ba4e8c1

Browse files
CI pipeline update to publish geospatial-client jar (#706)
* Update pipeline Signed-off-by: Andy Kwok <andy.kwok@improving.com> * Update release note Signed-off-by: Andy Kwok <andy.kwok@improving.com> --------- Signed-off-by: Andy Kwok <andy.kwok@improving.com>
1 parent eb8aba6 commit ba4e8c1

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

.github/workflows/maven-publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,18 @@ jobs:
2626
with:
2727
role-to-assume: ${{ secrets.PUBLISH_SNAPSHOTS_ROLE }}
2828
aws-region: us-east-1
29-
- name: publish snapshots to maven
29+
- name: publish snapshots zip to maven
3030
run: |
3131
export SONATYPE_USERNAME=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-username --query SecretString --output text)
3232
export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text)
3333
echo "::add-mask::$SONATYPE_USERNAME"
3434
echo "::add-mask::$SONATYPE_PASSWORD"
3535
./gradlew publishPluginZipPublicationToSnapshotsRepository
36+
- name: publish snapshots jar to maven
37+
run: |
38+
export SONATYPE_USERNAME=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-username --query SecretString --output text)
39+
export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text)
40+
echo "::add-mask::$SONATYPE_USERNAME"
41+
echo "::add-mask::$SONATYPE_PASSWORD"
42+
./gradlew :geospatial-client:publishNebulaPublicationToSnapshotsRepository
43+

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ See the [CONTRIBUTING guide](./CONTRIBUTING.md#Changelog) for instructions on ho
2222
### Bug Fixes
2323
### Infrastructure
2424
- Github ci-runner Node.js issue fix ([#701](https://github.com/opensearch-project/geospatial/pull/701))
25+
- Github CI pipeline update to publish geospatial-client Jar ([#706](https://github.com/opensearch-project/geospatial/pull/706))
2526
### Documentation
2627
### Maintenance
2728
### Refactoring

client/build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ spotless {
5555
}
5656

5757
publishing {
58+
repositories {
59+
maven {
60+
name = "Snapshots"
61+
url = "https://aws.oss.sonatype.org/content/repositories/snapshots"
62+
credentials {
63+
username "$System.env.SONATYPE_USERNAME"
64+
password "$System.env.SONATYPE_PASSWORD"
65+
}
66+
}
67+
}
5868
publications {
5969
pluginZip(MavenPublication) { publication ->
6070
pom {

0 commit comments

Comments
 (0)