Commit cbc7910 1 parent eb8aba6 commit cbc7910 Copy full SHA for cbc7910
File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,18 @@ jobs:
26
26
with :
27
27
role-to-assume : ${{ secrets.PUBLISH_SNAPSHOTS_ROLE }}
28
28
aws-region : us-east-1
29
- - name : publish snapshots to maven
29
+ - name : publish snapshots zip to maven
30
30
run : |
31
31
export SONATYPE_USERNAME=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-username --query SecretString --output text)
32
32
export SONATYPE_PASSWORD=$(aws secretsmanager get-secret-value --secret-id maven-snapshots-password --query SecretString --output text)
33
33
echo "::add-mask::$SONATYPE_USERNAME"
34
34
echo "::add-mask::$SONATYPE_PASSWORD"
35
35
./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
+
Original file line number Diff line number Diff line change @@ -55,6 +55,16 @@ spotless {
55
55
}
56
56
57
57
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
+ }
58
68
publications {
59
69
pluginZip(MavenPublication ) { publication ->
60
70
pom {
You can’t perform that action at this time.
0 commit comments