Skip to content

Commit cbc7910

Browse files
Update pipeline
Signed-off-by: Andy Kwok <andy.kwok@improving.com>
1 parent eb8aba6 commit cbc7910

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/maven-publish.yml

+9-1
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 publishNebulaPublicationToSnapshotsRepository
43+

client/build.gradle

+10
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)