Skip to content

Commit

Permalink
CI pipeline update to publish geospatial-client jar (#706) (#708)
Browse files Browse the repository at this point in the history
* 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>
(cherry picked from commit ba4e8c1)

Co-authored-by: Andy Kwok <andy.kwok@improving.com>
  • Loading branch information
1 parent fe6101a commit cea0173
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,18 @@ jobs:
with:
role-to-assume: ${{ secrets.PUBLISH_SNAPSHOTS_ROLE }}
aws-region: us-east-1
- name: publish snapshots to maven
- name: publish snapshots zip to maven
run: |
export SONATYPE_USERNAME=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-username --query SecretString --output text)
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 publishPluginZipPublicationToSnapshotsRepository
- name: publish snapshots jar to maven
run: |
export SONATYPE_USERNAME=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-username --query SecretString --output text)
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 :geospatial-client:publishNebulaPublicationToSnapshotsRepository
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ See the [CONTRIBUTING guide](./CONTRIBUTING.md#Changelog) for instructions on ho
### Bug Fixes
### Infrastructure
- Github ci-runner Node.js issue fix ([#701](https://github.com/opensearch-project/geospatial/pull/701))
- Github CI pipeline update to publish geospatial-client Jar ([#706](https://github.com/opensearch-project/geospatial/pull/706))
### Documentation
### Maintenance
### Refactoring
10 changes: 10 additions & 0 deletions client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ spotless {
}

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"
}
}
}
publications {
pluginZip(MavenPublication) { publication ->
pom {
Expand Down

0 comments on commit cea0173

Please sign in to comment.